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

Ahab's dick #284

Merged
merged 8 commits into from
Feb 17, 2022
Merged

Ahab's dick #284

merged 8 commits into from
Feb 17, 2022

Conversation

goodboy
Copy link
Contributor

@goodboy goodboy commented Feb 16, 2022

Add's a simple docker supervisor for spawning containers and launching marketstore in the actor tree using a @tractor.context endpoint.

Resolves #143.

In its current state you can start the container with python -m piker.data._ahab from the root repo dir.


_ahab TODO: (UPDATE: MOVED TO #247)

  • probably deliver back net-socket info over the ctx.started() call?
    • grprc socket
    • ws addr
  • cli support for running pikerd with the tsdb stuff spawned?
    • maybe a --tsdb or --data or something?
  • figure out what to do with the mkts.yaml config?
    • we could push a template from code to the user dir?
    • or should we just always gen it from python?

@goodboy goodboy added data-layer real-time and historical data processing and storage tsdb time series db stuff labels Feb 16, 2022
@goodboy goodboy changed the title Ahabs dick Ahab's dick Feb 16, 2022

# taken from ``click`` since apparently they have some
# super weirdness with sigint and sudo..no clue
def get_app_dir(app_name, roaming=True, force_posix=False):
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Literally had to add this because use of click somehow causes SIGINT to be masked.

See goodboy/tractor#302

log = get_logger(__name__)


_config = '''
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the config we need to talk about.

@goodboy goodboy changed the base branch from master to marketstore February 17, 2022 13:10
@goodboy goodboy merged commit ded2cbe into marketstore Feb 17, 2022
@goodboy goodboy deleted the ahabs_dick branch February 17, 2022 13:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
data-layer real-time and historical data processing and storage tsdb time series db stuff
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Supervise the store
2 participants