Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

swarm example: suggested improvements #773

Open
warmanton opened this issue Mar 20, 2020 · 2 comments
Open

swarm example: suggested improvements #773

warmanton opened this issue Mar 20, 2020 · 2 comments

Comments

@warmanton
Copy link

I have stolon installed using https://github.com/sorintlab/stolon/tree/master/examples/swarm .
All worked fine util today I got etcd with "alarm:NOSPACE" withdefault 2Gb limit. Postgres service stopped working until I fixed quota overlimit. Does stolon need revision history entries from etcd ? How mutch is enough ? 100 ?

What would you like to be added:
- --auto-compaction-mode=revision
- --auto-compaction-retention=100
command line parameters for etcd (or any reasonable values) in https://github.com/sorintlab/stolon/blob/master/examples/swarm/docker-compose-etcd.yml

Also need some explanation about ${ETCD_TOKEN} and where it comes from (.env ?)

Please fix passwords for replica and postgres in swarm/docker-compose-pg.yml . Current example works only due to both passwords (replication and postgres users) are "password1" and "password1". If passwords are different then provided example does not work.

Why is this needed:
To get working from the box example for swarm

@sgotti sgotti changed the title Stolon and etcd revision history swarm example: suggested improvements Mar 20, 2020
@sgotti
Copy link
Member

sgotti commented Mar 20, 2020

@warmanton

The swarm example was contributed so you should ask to the original author (see the commit history). Feel free to open a PR to improve it.

Does stolon need revision history entries from etcd ? How mutch is enough ? 100 ?

This is documented here: https://github.com/sorintlab/stolon/blob/master/doc/architecture.md#etcdv3-compaction

Please fix passwords for replica and postgres in swarm/docker-compose-pg.yml . Current example works only due to both passwords (replication and postgres users) are "password1" and "password1". If passwords are different then provided example does not work.

Please open another issue or better a PR to fix this.

@warmanton
Copy link
Author

#774

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants