mirror of
https://github.com/buckit-io/buckit.git
synced 2026-10-03 12:10:52 +00:00
6d6579cb47
cluster.sh emitted one endpoint arg per node, which brought the rig up as four independent server pools. Multi-pool GET resolves the owning pool via getLatestObjectInfoWithIdx (a per-pool xl.meta read) before the set-level fast path runs, so BUCKIT_FAST_GET=1 still read xl.meta and the single-trip path was never exercised. Emit a single pool spanning all nodes (http://node{1...4}:9000/data/...) so SinglePool() is true and GET dispatches straight to the set, letting the fast path bypass xl.meta. Regenerated docker-compose.yml reflects the change.
137 lines
2.8 KiB
YAML
137 lines
2.8 KiB
YAML
name: buckit-test
|
|
|
|
services:
|
|
node1:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
container_name: buckit-test-node1
|
|
hostname: node1
|
|
privileged: true
|
|
mem_limit: 256M
|
|
dns:
|
|
- 8.8.8.8
|
|
- 1.1.1.1
|
|
environment:
|
|
- DRIVES=4
|
|
- DRIVE_SIZE=1G
|
|
- MINIO_ROOT_USER=buckitadmin
|
|
- MINIO_ROOT_PASSWORD=buckitadmin
|
|
- BUCKIT_ENDPOINTS=http://node{1...4}:9000/data/drive{0...3}
|
|
- BUCKIT_FAST_GET=0
|
|
- SSH_ROOT_PASSWORD=buckitadmin
|
|
volumes:
|
|
- node1-drives:/var/lib/buckit-drives
|
|
tmpfs:
|
|
- /run
|
|
- /run/lock
|
|
ports:
|
|
- "9000:9000"
|
|
- "9001:9001"
|
|
- "2201:22"
|
|
networks:
|
|
- buckit-test-net
|
|
|
|
node2:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
container_name: buckit-test-node2
|
|
hostname: node2
|
|
privileged: true
|
|
mem_limit: 256M
|
|
dns:
|
|
- 8.8.8.8
|
|
- 1.1.1.1
|
|
environment:
|
|
- DRIVES=4
|
|
- DRIVE_SIZE=1G
|
|
- MINIO_ROOT_USER=buckitadmin
|
|
- MINIO_ROOT_PASSWORD=buckitadmin
|
|
- BUCKIT_ENDPOINTS=http://node{1...4}:9000/data/drive{0...3}
|
|
- BUCKIT_FAST_GET=0
|
|
- SSH_ROOT_PASSWORD=buckitadmin
|
|
volumes:
|
|
- node2-drives:/var/lib/buckit-drives
|
|
tmpfs:
|
|
- /run
|
|
- /run/lock
|
|
ports:
|
|
- "9002:9000"
|
|
- "9003:9001"
|
|
- "2202:22"
|
|
networks:
|
|
- buckit-test-net
|
|
|
|
node3:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
container_name: buckit-test-node3
|
|
hostname: node3
|
|
privileged: true
|
|
mem_limit: 256M
|
|
dns:
|
|
- 8.8.8.8
|
|
- 1.1.1.1
|
|
environment:
|
|
- DRIVES=4
|
|
- DRIVE_SIZE=1G
|
|
- MINIO_ROOT_USER=buckitadmin
|
|
- MINIO_ROOT_PASSWORD=buckitadmin
|
|
- BUCKIT_ENDPOINTS=http://node{1...4}:9000/data/drive{0...3}
|
|
- BUCKIT_FAST_GET=0
|
|
- SSH_ROOT_PASSWORD=buckitadmin
|
|
volumes:
|
|
- node3-drives:/var/lib/buckit-drives
|
|
tmpfs:
|
|
- /run
|
|
- /run/lock
|
|
ports:
|
|
- "9004:9000"
|
|
- "9005:9001"
|
|
- "2203:22"
|
|
networks:
|
|
- buckit-test-net
|
|
|
|
node4:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
container_name: buckit-test-node4
|
|
hostname: node4
|
|
privileged: true
|
|
mem_limit: 256M
|
|
dns:
|
|
- 8.8.8.8
|
|
- 1.1.1.1
|
|
environment:
|
|
- DRIVES=4
|
|
- DRIVE_SIZE=1G
|
|
- MINIO_ROOT_USER=buckitadmin
|
|
- MINIO_ROOT_PASSWORD=buckitadmin
|
|
- BUCKIT_ENDPOINTS=http://node{1...4}:9000/data/drive{0...3}
|
|
- BUCKIT_FAST_GET=0
|
|
- SSH_ROOT_PASSWORD=buckitadmin
|
|
volumes:
|
|
- node4-drives:/var/lib/buckit-drives
|
|
tmpfs:
|
|
- /run
|
|
- /run/lock
|
|
ports:
|
|
- "9006:9000"
|
|
- "9007:9001"
|
|
- "2204:22"
|
|
networks:
|
|
- buckit-test-net
|
|
|
|
volumes:
|
|
node1-drives:
|
|
node2-drives:
|
|
node3-drives:
|
|
node4-drives:
|
|
|
|
networks:
|
|
buckit-test-net:
|
|
driver: bridge
|