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
Need a way to run perf test locally (e.g dev laptop) without overwhelming the host system. This would allow devs to tune the performance by using tools available in the host OS. In Linux it can be perf, heaptrack etc (depending on what needs to be captured). The issues especially related to OOMs or CPU too high should be traceable to the actual code path (by attaching debug symbols in release profile).
Proposed solution (TBD)
Options available
Use docker-compose or just plain docker to run influxdb in one of the containers and the load generator in another container with hard limits for memory and cpu setup at the docker level for both of them.
Run influxdb3 and load generator on the host system, by creating cgroups to be able to control the system resources used by each process. influxdb3 for example can be configured to take up X number of CPU quotas/slices and use Y as the memory allowance.
Using docker-compose for example allows it to be used in macos as well. However, it would still require Linux tools to run any perf testing within the container (as explained here). Natively running on Linux (or macos) for example should be helpful as it is easier to run any platform specific tools to diagnose perf issues.
Alternatives considered
TBD
Additional context
N/A
The text was updated successfully, but these errors were encountered:
Problem statement
Need a way to run perf test locally (e.g dev laptop) without overwhelming the host system. This would allow devs to tune the performance by using tools available in the host OS. In Linux it can be
perf
,heaptrack
etc (depending on what needs to be captured). The issues especially related to OOMs or CPU too high should be traceable to the actual code path (by attaching debug symbols in release profile).Proposed solution (TBD)
Options available
Use
docker-compose
or just plaindocker
to run influxdb in one of the containers and the load generator in another container with hard limits for memory and cpu setup at the docker level for both of them.Run
influxdb3
and load generator on the host system, by creatingcgroups
to be able to control the system resources used by each process.influxdb3
for example can be configured to take upX
number of CPU quotas/slices and useY
as the memory allowance.Using
docker-compose
for example allows it to be used in macos as well. However, it would still require Linux tools to run any perf testing within the container (as explained here). Natively running on Linux (or macos) for example should be helpful as it is easier to run any platform specific tools to diagnose perf issues.Alternatives considered
TBD
Additional context
N/A
The text was updated successfully, but these errors were encountered: