Skip to content

Can I add multiple services in parallel to my enclave via composition? #1276

Answered by leeederek
guisellaDes asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @guisellaDes!

Adding services in parallel is a great way to speed up how quickly your distributed system gets instantiated inside your enclave. By default, the add_services instruction adds services in parallel with a default parallelism of 4 (which can be increased with the --parallelism flag).

However, when it comes to adding multiple services from different packages, you must do so within the plan.add_services instruction with the configuration for each service in a dictionary. You cannot currently import multiple packages (using locators) and run them in parallel without using the plan.add_services instruction because the call to run each of those imported packages starts the serv…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by leeederek
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants