Skip to content

Commit

Permalink
milvus
Browse files Browse the repository at this point in the history
  • Loading branch information
qiaofeng1227 committed Oct 8, 2024
1 parent d0e438d commit 3672bc6
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 77 deletions.
28 changes: 10 additions & 18 deletions apps/milvus/.env
Original file line number Diff line number Diff line change
@@ -1,20 +1,12 @@
W9_REPO=quay.io/coreos/etcd
W9_VERSION=v3.5.5
W9_ID=milvus
W9_NETWORK=websoft9
W9_POWER_ACCESS_KEY=3SZW5gkJwqm17i0o
W9_POWER_SECRET_KEY=zaaP79UXbcfJrJKGnAu+N9Yy6TIy+vWT
W9_REPO=milvusdb/milvus
W9_VERSION=v2.4.12
W9_DIST=community

# Ports Configuration
W9_ID=milvus
W9_HTTP_PORT=19530
W9_HTTP_PORT_SET=50002
W9_ADMIN_PORT=9091
W9_ADMIN_PORT_SET=5001
W9_MINIO_HTTP_PORT=9000
W9_MINIO_HTTP_PORT_SET=9000
W9_MINIO_CONSOLE_PORT=9001
W9_MINIO_CONSOLE_PORT_SET=9001
W9_HTTP_PORT_SET=19530
W9_URL=internet_ip
W9_NETWORK=websoft9

# ETCD Configuration
ETCD_AUTO_COMPACTION_MODE=revision
Expand All @@ -23,9 +15,9 @@ ETCD_QUOTA_BACKEND_BYTES=4294967296
ETCD_SNAPSHOT_COUNT=50000

# MinIO Configuration
MINIO_ACCESS_KEY=$W9_POWER_ACCESS_KEY
MINIO_SECRET_KEY=$W9_POWER_SECRET_KEY
MINIO_ACCESS_KEY=3SZW5gkJwqm17i0o
MINIO_SECRET_KEY=zaaP79UXbcfJrJKGnAu+N9Yy6TIy+vWT

# Standalone Service Configuration
ETCD_ENDPOINTS=etcd:2379
MINIO_ADDRESS=minio:9001
ETCD_ENDPOINTS=$W9_ID-etcd:2379
MINIO_ADDRESS=$W9_ID-minio:9001
12 changes: 1 addition & 11 deletions apps/milvus/Note.md
Original file line number Diff line number Diff line change
@@ -1,11 +1 @@
# Milvus

## FAQ

### 1. **What is Milvus?**

Milvus is an open-source, high-performance vector database designed to manage and search large-scale vector data. It is optimized for similarity search in applications such as AI, machine learning, and big data analysis. Milvus is highly scalable and can run on various environments, from local machines to distributed systems.

### 2. **How do I install Milvus?**

Milvus can be installed using Docker. Follow the instructions provided in the [Milvus documentation](https://milvus.io/docs/install_standalone-docker-compose.md) to set it up and run it using Docker containers.
# Milvus
26 changes: 0 additions & 26 deletions apps/milvus/README.jinja2

This file was deleted.

24 changes: 8 additions & 16 deletions apps/milvus/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
# image: https://hub.docker.com/r/milvusdb/milvus/tags
# image: https://hub.docker.com/r/milvusdb/milvus
# compose: https://milvus.io/docs/install_standalone-docker-compose.md
# docs: https://milvus.io/docs

version: '3.8'

services:
etcd:
container_name: $W9_ID-etcd
image: $W9_REPO:$W9_VERSION
image: quay.io/coreos/etcd:v3.5.5
volumes:
- etcd_data:/etcd
command: etcd -advertise-client-urls=http://127.0.0.1:2379 -listen-client-urls http://0.0.0.0:2379 --data-dir /etcd
Expand All @@ -20,42 +21,36 @@ services:
minio:
container_name: $W9_ID-minio
image: minio/minio:RELEASE.2023-03-20T20-16-18Z
ports:
- "${W9_MINIO_HTTP_PORT_SET}:9000"
- "${W9_MINIO_CONSOLE_PORT_SET}:9001"
volumes:
- minio_data:/minio_data
command: minio server /minio_data --console-address ":${W9_MINIO_CONSOLE_PORT}"
command: minio server /minio_data --console-address ":9001}"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:${W9_MINIO_HTTP_PORT}/minio/health/live"]
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
interval: 30s
timeout: 20s
retries: 3


standalone:
container_name: $W9_ID-standalone
image: milvusdb/milvus:v2.4.12
container_name: $W9_ID
image: $W9_REPO:$W9_VERSION
command: ["milvus", "run", "standalone"]
security_opt:
- seccomp:unconfined
volumes:
- milvus_data:/var/lib/milvus
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:${W9_ADMIN_PORT}/healthz"]
test: ["CMD", "curl", "-f", "http://localhost:9091/healthz"]
interval: 30s
start_period: 90s
timeout: 20s
retries: 3
ports:
- "${W9_HTTP_PORT_SET}:19530"
- "${W9_ADMIN_PORT_SET}:9091"
depends_on:
- etcd
- minio
env_file:
- .env


networks:
default:
Expand All @@ -64,11 +59,8 @@ networks:

volumes:
etcd_data:
driver: local
minio_data:
driver: local
milvus_data:
driver: local



Expand Down
12 changes: 6 additions & 6 deletions apps/milvus/variables.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
{
"name": "milvus",
"trademark": "Milvus",
"release": true,
"fork_url": "https://github.com/milvus-io/milvus/fork",
"release": false,
"fork_url": "https://github.com/milvus-io/milvus",
"docker_url": "https://hub.docker.com/r/milvusdb/milvus/tags",
"edition": [
{
"dist": "community",
"version": ["latest"]
"version": ["v2.4.12","latest"]
}
],
"requirements": {
"cpu": "4",
"memory": "8",
"disk": "2200",
"cpu": "8",
"memory": "32",
"disk": "2",
"url": "https://milvus.io/docs/prerequisite-docker.md"
}
}
Expand Down

0 comments on commit 3672bc6

Please sign in to comment.