Skip to content
New issue

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

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

Already on GitHub? # to your account

configstore: maintenance/export/import #67

Merged
merged 2 commits into from
Jul 29, 2019

Conversation

sgotti
Copy link
Member

@sgotti sgotti commented Jul 26, 2019

Implement configstore maintenance mode and export/import.

When configstore is set in maintenance mode it'll start only the maintenance and
export/import handlers.

Setting maintenance mode will set a key in etcd so all the configstore instances
will detect it and enter in maintenance mode. This is done asyncronously so it
could take some time (future improvements will add some api to show all the
configstore states)

Export is always available and will export the datamanager contents.

Import is available only during maintenance, given a datamanager export will
import it and reset etcd to this import state.

sgotti added 2 commits July 26, 2019 10:55
GoWait will increase the provided waitGroup on start and execute a goroutine
that will run the provided functions and then decrease the waitGroup
Implement configstore maintenance mode and export/import.

When configstore is set in maintenance mode it'll start only the maintenance and
export/import handlers.

Setting maintenance mode will set a key in etcd so all the configstore instances
will detect it and enter in maintenance mode. This is done asyncronously so it
could take some time (future improvements will add some api to show all the
configstore states)

Export is always available and will export the datamanager contents.

Import is available only during maintenance, given a datamanager export will
import it and reset etcd to this import state.
@sgotti sgotti merged commit 1034b3a into agola-io:master Jul 29, 2019
@sgotti sgotti deleted the configstore_maintenance_export_import branch February 19, 2020 09:07
tulliobotti64 pushed a commit to tulliobotti64/agola that referenced this pull request Oct 19, 2022
…port_import

configstore: maintenance/export/import
tulliobotti64 pushed a commit to tulliobotti64/agola that referenced this pull request Oct 19, 2022
…port_import

configstore: maintenance/export/import
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant