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

Contain mkts #341

Merged
merged 4 commits into from
Jun 26, 2022
Merged

Contain mkts #341

merged 4 commits into from
Jun 26, 2022

Conversation

goodboy
Copy link
Contributor

@goodboy goodboy commented Jun 23, 2022

Changes the marketstore config / runtime dir to be under a <configdir>/piker/marketstore to keep it more self contained/less messy in the filesystem.

NB: this may cause issues for existing users that have the configs in the top level piker/, the only thing that should be required is to move the data/ directory generated by the db into the marketstore/ subdir if you want to read your old data.

Further this includes a tightening of the supervisor's cancel logic/loop and a more general log-msg polling sys allowing config endpoints to pass those msgs they expect to the super.

goodboy added 2 commits June 23, 2022 09:48
This should hopefully make teardown more reliable and includes better
logic to fail over to a hard kill path after a 3 second timeout waiting
for the instance to complete using the `docker-py` wait API. Also
generalize the supervisor teardown loop by allowing the container config
endpoint to return 2 msgs to expect:
- a startup message that can be read from the container's internal
  process logging that indicates it is fully up and ready.
- a teardown msg that can be polled for that indicates the container has
  gracefully terminated after a cancellation request which is passed to
  our container wrappers `.cancel()` method.

Make the marketstore config endpoint return the 2 messages we previously
had hard coded and use this new api.
@goodboy goodboy requested review from guilledk and iamzoltan June 23, 2022 14:35
@goodboy goodboy added integration external stack and/or lib augmentations infra deployment architectures, recipes and automation labels Jun 23, 2022
@goodboy goodboy merged commit 3977f1c into master Jun 26, 2022
@goodboy goodboy deleted the contain_mkts branch June 26, 2022 17:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
infra deployment architectures, recipes and automation integration external stack and/or lib augmentations
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants