Skip to content

Commit 7a94830

Browse files
committed
Added best practice for networking
1 parent fe7a094 commit 7a94830

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

content/en/docs/measuring/best-practices.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,4 +152,12 @@ We recommend setting `system_check_treshold` to **2** in your production setup o
152152
### 17. Idle Duration
153153
If you are trying to calculate an energy per container you should set the `idle-duration` configuration value high enough so you get a stable value to base the offset on.
154154

155-
We recommend at least *120 s*.
155+
We recommend at least *120 s*.
156+
157+
### 18. Internal Networking Only
158+
External networking introduces variable latency in your benchmarks and thus should be avoided whereever possible.
159+
160+
One method to achieve this is to set the network to internal only. See [Docker Compose directive](https://docs.docker.com/reference/compose-file/networks/#internal).
161+
GMT supports this feature natively.
162+
163+
In case you need access to external networking we recommend you at least try to cache the request in a warmup run and then run the final benchmark on the cached / internally mirrored result.

0 commit comments

Comments
 (0)