cmd/satellite: create API subcommand #3280
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Why/What:
We are separating the satellite into many processes so that we can horizontally scale. Here we continue the separation satellite API and add a
satellite run api
subcommand to the satellite binary.The
satellite run api
subcommand does the following:The subcommand does not do the following:
satellite run
command which is responsible for the migration. We can change this in the future if need be, but for the time being, this is the simplest.Please describe the tests:
storj-sim setup
command. Here is an example of how to run storj-sim now:These steps are also outlined in the storj/docs here.
Please describe the performance impact:
This should not change performance since its all the same code. But it should help performance once deployed since we can run many replicas of the API with this setup.
Code Review Checklist (to be filled out by reviewer)