-
Notifications
You must be signed in to change notification settings - Fork 24
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
Fix docs #181
Merged
Merged
Fix docs #181
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,8 +11,9 @@ and start scenarios on all known nodes (except master). | |
```erlang | ||
amoc_dist:do(my_scenario, 100, Settings). | ||
``` | ||
|
||
```elixir | ||
:amoc_dist.do(:my_scenario, 100, settings). | ||
:amoc_dist.do(:my_scenario, 100, settings) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is the main reason my elixir code doesn't compile, those accidental commas I'm so used to! 😅 |
||
``` | ||
|
||
Start `my_scenario` spawning 100 amoc users with IDs from the range `[1, 100]` inclusive. | ||
|
@@ -25,31 +26,34 @@ Note that these settings will be propagated automatically among all the nodes in | |
```erlang | ||
amoc_dist:add(50). | ||
``` | ||
|
||
```elixir | ||
:amoc_dist.add(50). | ||
:amoc_dist.add(50) | ||
``` | ||
|
||
Add 50 more users to the currently started scenario. | ||
|
||
```erlang | ||
amoc_dist:remove(50, Force). | ||
``` | ||
|
||
```elixir | ||
:amoc_dist.remove(50, force). | ||
:amoc_dist.remove(50, force) | ||
``` | ||
|
||
Remove 50 sessions. | ||
|
||
Where ``Force`` is a boolean of value: | ||
Where `Force` is a boolean of value: | ||
|
||
* ``true`` - to kill the user processes using ``supervisor:terminate_child/2`` function | ||
* ``false`` - to send ``exit(User,shutdown)`` signal to the user process (can be ignored by the user) | ||
* `true` - to kill the user processes using `supervisor:terminate_child/2` function | ||
* `false` - to send `exit(User, shutdown)` signal to the user process (can be ignored by the user) | ||
|
||
All the users are `temporary` children of a `simple_one_for_one` supervisor with the `shutdown` key set to `2000`. | ||
|
||
Note that removal operation is asynchronous, and if we call `amoc_controller:remove_users/2` two times in a row, it may select the same users for removal. | ||
|
||
Also all the user processes trap exits. | ||
|
||
|
||
## Don't stop scenario on exit | ||
|
||
There is one problem with the `bin/amoc console` command. When you exit the Erlang | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, this came from how it was done for MIM configuration modules, but here's not language agnostic, good catch! :D