You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add apply-load mode for searching ledger limits. (#5031)
# Description
Add apply-load mode for searching ledger limits.
The new mode finds the ledger limits that allow applying the maximum
possible TPL that still allows closing ledgers within the configured
time limit, e.g. find how many Soroswap-like transactions can be applied
within N ms, and what are the respective ledger limits (with some
rounding to get nicer numbers).
# Checklist
- [ ] Reviewed the
[contributing](https://github.com/stellar/stellar-core/blob/master/CONTRIBUTING.md#submitting-changes)
document
- [ ] Rebased on top of master (no merge commits)
- [ ] Ran `clang-format` v8.0.0 (via `make format` or the Visual Studio
extension)
- [ ] Compiles
- [ ] Ran all tests
- [ ] If change impacts performance, include supporting evidence per the
[performance
document](https://github.com/stellar/stellar-core/blob/master/performance-eval/performance-eval.md)
Copy file name to clipboardExpand all lines: docs/software/commands.md
+9-4Lines changed: 9 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,13 +29,18 @@ Command options can only by placed after command.
29
29
synthetic ledger close metadata emitted during the benchmark, and then use
30
30
it for benchmarking the meta consumers.
31
31
* This can only be used when `ARTIFICIALLY_GENERATE_LOAD_FOR_TESTING=true`
32
+
* The command supports several modes:
33
+
-**--mode limit-based**: the default mode that measures the
34
+
ledger close time for applying transactions.
35
+
-**--mode max-sac-tps**: determines maximum TPS for the load consisting
36
+
only of fast SAC transfer
37
+
-**--mode limits-for-model-tx**: determines maximum ledger limits for the
38
+
load consisting only of a customizable 'model' transaction.
32
39
* Load generation is configured in the Core config file. The relevant settings
33
40
all begin with `APPLY_LOAD_`. See full example configurations with
34
41
per-setting documentation in the `docs` directory
35
-
(`apply-load.cfg`, `apply-load-for-meta.cfg`).
36
-
* The command also supports the special mode for determining max apply 'TPS'
37
-
using SAC transfers. It can be invoked by passing `max-sac-tps` as
38
-
`apply-load` argument.
42
+
(all the `apply-load-*.cfg` files demonstrate different modes and use
43
+
cases).
39
44
40
45
***calculate-asset-supply**: Calculates total supply of an asset from the live and hot archive bucket lists IF the total supply fits in a 64 bit signed integer. Also validates against totalCoins for the native asset. Uses `--code <CODE>` and `--issuer <ISSUER>` to specify the asset. Uses the native asset if neither `--code` nor `--issuer` is given.
41
46
***catchup <DESTINATION-LEDGER/LEDGER-COUNT>**: Perform catchup from history
0 commit comments