


























reductstore 的部署模式还是挺多的,有单机,冷备以及热备以及只读模式
冷备模式就不说明了,核心是通过cli 或者界面配置的,主要说下其他模式的

需要共享存储,推荐s3
version: "3.9"
services:
reduct-primary:
image: reduct/store:latest
environment:
RS_INSTANCE_ROLE: PRIMARY
RS_REMOTE_BACKEND_TYPE: S3
RS_REMOTE_BUCKET: reduct-ha
RS_REMOTE_REGION: us-east-1
RS_REMOTE_ACCESS_KEY: ${AWS_ACCESS_KEY_ID}
RS_REMOTE_SECRET_KEY: ${AWS_SECRET_ACCESS_KEY}
RS_REMOTE_CACHE_PATH: /var/reduct/cache
RS_LOCK_FILE_TTL: 45 # Wait 45 seconds if lock is stale before taking over
RS_LOCK_FILE_TIMEOUT: 0 # Wait indefinitely for the lock
RS_LICENSE_PATH: /var/reduct/license/license.key
volumes:
- primary-cache:/var/reduct/cache
- ./license/license.key:/var/reduct/license/license.key:ro
ports:
- "8383:8383"
reduct-secondary:
image: reduct/store:latest
environment:
RS_INSTANCE_ROLE: SECONDARY
RS_REMOTE_BACKEND_TYPE: S3
RS_REMOTE_BUCKET: reduct-ha
RS_REMOTE_REGION: us-east-1
RS_REMOTE_ACCESS_KEY: ${AWS_ACCESS_KEY_ID}
RS_REMOTE_SECRET_KEY: ${AWS_SECRET_ACCESS_KEY}
RS_REMOTE_CACHE_PATH: /var/reduct/cache
RS_LOCK_FILE_TTL: 45 # Wait 45 seconds if lock is stale before taking over
RS_LOCK_FILE_TIMEOUT: 0 # Wait indefinitely for the lock
RS_LICENSE_PATH: /var/reduct/license/license.key
volumes:
- secondary-cache:/var/reduct/cache
- ./license/license.key:/var/reduct/license/license.key:ro
ports:
- "8384:8383"
volumes:
primary-cache:
secondary-cache:

推荐s3
version: "3.9"
services:
reduct-primary:
image: reduct/store:latest
environment:
RS_INSTANCE_ROLE: PRIMARY
RS_REMOTE_BACKEND_TYPE: S3
RS_REMOTE_BUCKET: reduct-ha
RS_REMOTE_REGION: us-east-1
RS_REMOTE_ACCESS_KEY: ${AWS_ACCESS_KEY_ID}
RS_REMOTE_SECRET_KEY: ${AWS_SECRET_ACCESS_KEY}
RS_REMOTE_CACHE_PATH: /var/reduct/cache
RS_LOCK_FILE_TTL: 45 # Wait 45 seconds if lock is stale before taking over
RS_LOCK_FILE_TIMEOUT: 0 # Wait indefinitely for the lock
RS_LICENSE_PATH: /var/reduct/license/license.key
volumes:
- primary-cache:/var/reduct/cache
- ./license/license.key:/var/reduct/license/license.key:ro
ports:
- "8383:8383"
reduct-secondary:
image: reduct/store:latest
environment:
RS_INSTANCE_ROLE: REPLICA
RS_REMOTE_BACKEND_TYPE: S3
RS_REMOTE_BUCKET: reduct-ha
RS_REMOTE_REGION: us-east-1
RS_REMOTE_ACCESS_KEY: ${AWS_ACCESS_KEY_ID}
RS_REMOTE_SECRET_KEY: ${AWS_SECRET_ACCESS_KEY}
RS_REMOTE_CACHE_PATH: /var/reduct/cache
RS_LOCK_FILE_TTL: 45 # Wait 45 seconds if lock is stale before taking over
RS_LOCK_FILE_TIMEOUT: 0 # Wait indefinitely for the lock
RS_LICENSE_PATH: /var/reduct/license/license.key
volumes:
- secondary-cache:/var/reduct/cache
- ./license/license.key:/var/reduct/license/license.key:ro
ports:
- "8384:8383"
volumes:
primary-cache:
secondary-cache:
了解reductstore的一些部署模式有助于更好的使用,细节还是比较重要的,但是不太好的是此特性需要企业许可
参考资料
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。