1
0
Fork 0
mirror of https://github.com/anyproto/any-sync-dockercompose.git synced 2025-06-08 05:47:03 +09:00

UPGRADE.md added mongo upgrade instruction

This commit is contained in:
Grigory Efimov 2024-04-05 11:52:34 -03:00
parent eeb22a00ad
commit 7b11efb32b
No known key found for this signature in database
GPG key ID: 0A88C34DFA7FD939

View file

@ -29,3 +29,15 @@ in some cases it may be necessary to run ```make upgrade```
Starting with version 2.0.1, we have switched from s3-emulator to MinIO for storing data uploaded via the any-sync-filenode daemon.
To preserve your data, you will need to manually migrate it from s3-emulator to MinIO.
For this You can use https://min.io/docs/minio/linux/reference/minio-mc/mc-mirror.html.
## Upgrading from v2.x.x to v3.x.x
Starting with version 3.0.0, we have reduced mongo instances from 3 to 1.
For correctly working You need reconfigure mongo cluster.
After Upgrade please run:
```
docker compose exec mongo-1 mongosh 127.0.0.1:27001/coordinator
use admin
var cfg = rs.conf()
cfg.members = [{ _id: 0, host: "mongo-1:27001" }]
rs.reconfig(cfg, {force: true})
```