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
-[polycli](https://github.com/0xpolygon/polygon-cli?tab=readme-ov-file#install) installed and configured
38
-
-Funded accounts with private keys available to `polycli`
38
+
-Set `$private_key` with the private key of the funded account available to `polycli`
39
39
- Access to performance monitoring tools (optional but recommended, e.g., `Grafana` + `Prometheus`)
40
40
41
41
## Configuring Kurtosis for Load Testing
42
42
43
-
Launch a Kurtosis environment with your desired stack (e.g., CDK-Erigon or OP-Geth), for this example we will use the [kurtosis-cdk](https://github.com/0xPolygon/kurtosis-cdk) repository:
43
+
Launch a Kurtosis environment with your desired stack (e.g., `CDK-Erigon` or `OP-Geth`), for this example we will use
44
+
the [kurtosis-cdk](https://github.com/0xPolygon/kurtosis-cdk) repository:
44
45
46
+
this command will start the latest version of the environment provided by the `kurtosis-cdk` repository
45
47
````bash
46
48
kurtosis run --enclave cdk github.com/0xPolygon/kurtosis-cdk
47
49
````
48
50
51
+
if you want to ensure you will run either `cdk-erigon` or `op-geth`, ensure to set the parameter `deployment_stages.deploy_optimism_rollup` accordingly, `false` for `cdk-erigon` and `true` for `op-geth`.
52
+
53
+
````bash
54
+
kurtosis run --enclave cdk github.com/0xPolygon/kurtosis-cdk '{"deployment_stages": {"deploy_optimism_rollup": false}}'
55
+
````
56
+
49
57
After the whole environment is started, set the env var `$rpc_url` with the RPC endpoint URL that will be used by
50
58
`polycli`.
51
59
60
+
for `op-geth`:
61
+
```bash
62
+
export rpc_url=$(kurtosis port print cdk op-el-1-op-geth-op-node-001 rpc)
63
+
```
64
+
65
+
for `cdk-erigon`:
66
+
```bash
67
+
export rpc_url=$(kurtosis port print cdk cdk-erigon-rpc-001 rpc)
68
+
```
69
+
70
+
Last, but not least, all the examples below will use the `$private_key` environment variable, ensure this env var
71
+
contains the correct private key for the network your kurtosis environment is running.
0 commit comments