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

Easier support for multiple instances locally #6289

Merged
merged 3 commits into from
Sep 20, 2024

Conversation

jakobht
Copy link
Member

@jakobht jakobht commented Sep 17, 2024

What changed?

  • Make ports in development config configurable, so we can start several instances of the same service.
    • We keep the old defaults, so if nothing is specified everything works as before
  • Added script that starts several instances of the services, mainly for illustrative purposes, but could be useful to quickly start 3 instances of each of frontend, history and matching.

Why?

  • As we want to test things related to sharing we need to be able to have multiple instances of the services running, this enables this.

How did you test it?
Ran locally, this is just a development setup

Potential risks
None

Release notes

Documentation Changes

…e service.

We keep the old defaults, so if nothing is specified everything works as before
…r illustrative purposes, but could be useful to quickly start.
@jakobht jakobht changed the title Multi instance Easier support for multiple instances locally Sep 17, 2024
Copy link

codecov bot commented Sep 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 73.20%. Comparing base (b41976a) to head (d6eb461).
Report is 9 commits behind head on master.

Additional details and impacted files

see 13 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b41976a...d6eb461. Read the comment docs.

@@ -0,0 +1,29 @@
#!/bin/bash
Copy link
Member

Choose a reason for hiding this comment

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

a script to stop all these binaries would be nice too

Copy link
Member Author

Choose a reason for hiding this comment

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

Modified the script so ctrl-c will kill all the services. So now we can run the script, and if we just want to kill everything we just do ctrl-c and everything will be instantly killed.

@jakobht jakobht merged commit c8abc2a into cadence-workflow:master Sep 20, 2024
20 checks passed
dkrotx pushed a commit to dkrotx/cadence that referenced this pull request Sep 26, 2024
* Make ports configurable, so we can start several instances of the same service.

We keep the old defaults, so if nothing is specified everything works as before

* Added script that starts several instances of the services, mainly for illustrative purposes, but could be useful to quickly start.

* The services are now killed on ctrl-c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants