mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-04 18:17:16 +01:00
* mini: start weed-worker with the vector engine With -vector, mini now also starts weed-worker, the Lance maintenance worker that builds vector and metadata indexes, finding it the way it finds weed-vector: beside weed, then on PATH. -vector.worker=false leaves it out and -vector.worker.binary names another binary. The Lance Namespace trusts the worker only by a token derived from jwt.filer_signing.key. A cluster with that key hands it to the worker through security.toml as before. Without one, mini makes a key for the run, gives it to the worker in its environment, and lets the namespace accept it while no cluster key is set. The filer and the other services are unaffected, so unauthenticated filer writes keep working. * mini: run the vector engine by default, without failing when it is missing -vector now defaults to true, so a plain weed mini starts weed-vector and weed-worker whenever they are installed. Both binaries are looked up before ports are reserved; one that is not found is logged and left out, and mini runs without it. A vector engine that fails to start is logged the same way instead of shutting mini down. -vector=false still leaves vector search out. * mini: clear the vector state a previous in-process run prepared prepareMiniVector returned early without clearing the paths and key an earlier run in the same process had set, so a rerun with -vector.worker=false still started that run's weed-worker. * mini: pass the [grpc.worker] certificates to weed-worker weed-worker takes its admin TLS only from --tls-ca, --tls-cert and --tls-key, not from security.toml, so behind an admin secured with [grpc.admin] the worker mini started dialed in plaintext and never connected. Mini now passes the certificates its Go workers dial admin with, chosen as security.LoadClientTLS chooses them. * mini: find weed-worker without new flags Drop -vector.worker and -vector.worker.binary. weed-worker is looked up beside weed, then beside the weed-vector mini starts (so an explicit -vector.binary also locates it), then on PATH; -vector=false leaves both out. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * docker/s3vectors: keep mini from starting a second engine and worker The demo runs weed-vector and weed-worker in their own containers. With -vector on by default, mini in an image that ships both binaries would start another engine and worker beside them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * mini: look for weed-worker beside a relative -vector.binary filepath.Join drops the "." of ./weed-vector, so the sibling candidate became a bare name and LookPath searched PATH instead. Resolve the directory first. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
35 lines
1.2 KiB
YAML
35 lines
1.2 KiB
YAML
services:
|
|
seaweedfs:
|
|
image: ${SEAWEEDFS_IMAGE:-chrislusf/seaweedfs:4.53}
|
|
command: mini -dir=/data -ip=seaweedfs -ip.bind=0.0.0.0 -admin.password=vector-demo -admin.worker.ip=0.0.0.0 -tableBucket=embeddings:LANCE -vector=false
|
|
environment: &environment
|
|
WEED_JWT_FILER_SIGNING_KEY: vector-demo-cluster-key
|
|
AWS_ACCESS_KEY_ID: vector-demo
|
|
AWS_SECRET_ACCESS_KEY: vector-demo-secret
|
|
ports:
|
|
- "127.0.0.1:8333:8333"
|
|
- "127.0.0.1:12535:12535"
|
|
volumes:
|
|
- data:/data
|
|
healthcheck:
|
|
test: [CMD-SHELL, "wget -q -O /dev/null http://127.0.0.1:9333/cluster/status"]
|
|
interval: 5s
|
|
timeout: 3s
|
|
retries: 30
|
|
vector:
|
|
image: ${SEAWEEDFS_IMAGE:-chrislusf/seaweedfs:4.53}
|
|
command: vector --listen=vector:8090 --masters=seaweedfs:9333
|
|
environment: *environment
|
|
depends_on:
|
|
seaweedfs:
|
|
condition: service_healthy
|
|
worker:
|
|
image: ${SEAWEEDFS_IMAGE:-chrislusf/seaweedfs:4.53}
|
|
command: worker-rust --admin=seaweedfs:12535 --masters=seaweedfs:9333 --namespace=http://seaweedfs:9101
|
|
environment: *environment
|
|
depends_on:
|
|
seaweedfs:
|
|
condition: service_healthy
|
|
volumes:
|
|
data:
|