Commit 3ad7fe1
feat: add security_opt support for execution client containers (#9)
* feat: add security_opt support for execution client containers
Add a `security_opt` field to the scenario config that gets passed
to Docker's `containers.run()`. This allows setting Docker security
options like `seccomp=unconfined` which is needed for profiling tools
(e.g., perf/perfcollect) to call `perf_event_open` inside containers.
Example usage in scenario config:
```yaml
security_opt:
- seccomp=unconfined
```
* feat: add 30s grace period before stopping execution client
* fix: remove redundant inline import - time already imported at top
* fix: increase stop timeout to 60s instead of pre-stop sleep
WritePGOData only flushes on process exit (SIGTERM handler), not while
idle. The 30s sleep before stop was pointless - Nethermind just sits
waiting for blocks. Instead increase Docker's SIGTERM-to-SIGKILL
timeout from 10s to 60s so the shutdown handler has time to flush.
* fix: rename security_opt to execution_client_security_opt for consistency
* fix: increase stop timeout to 120s for RocksDB flush + PGO data write
---------
Co-authored-by: Carlos Bermudez Porto <cbermudez.dev@gmail.com>1 parent b8f6ba7 commit 3ad7fe1
3 files changed
Lines changed: 11 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
164 | 168 | | |
165 | 169 | | |
166 | 170 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
426 | 426 | | |
427 | 427 | | |
428 | 428 | | |
| 429 | + | |
| 430 | + | |
429 | 431 | | |
430 | 432 | | |
431 | 433 | | |
| |||
1029 | 1031 | | |
1030 | 1032 | | |
1031 | 1033 | | |
1032 | | - | |
1033 | | - | |
1034 | | - | |
| 1034 | + | |
| 1035 | + | |
| 1036 | + | |
| 1037 | + | |
1035 | 1038 | | |
1036 | 1039 | | |
1037 | 1040 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| 70 | + | |
70 | 71 | | |
71 | 72 | | |
72 | 73 | | |
| |||
0 commit comments