-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Podman] Supports SQLite containers database back-end to support newer versions (4.8+) #24194
Conversation
Go Package Import DifferencesBaseline: cfbbd27
|
Test changes on VMUse this command from test-infra-definitions to manually test this PR changes on a VM: inv create-vm --pipeline-id=31445103 --os-family=ubuntu |
Regression DetectorRegression Detector ResultsRun ID: 62dbd2e-67e7-4952-97cc-4bf4a3826b3f Performance changes are noted in the perf column of each table:
No significant changes in experiment optimization goalsConfidence level: 90.00% There were no significant changes in experiment optimization goals at this confidence level and effect size tolerance.
|
perf | experiment | goal | Δ mean % | Δ mean % CI |
---|---|---|---|---|
➖ | file_to_blackhole | % cpu utilization | +0.32 | [-5.90, +6.54] |
Fine details of change detection per experiment
perf | experiment | goal | Δ mean % | Δ mean % CI |
---|---|---|---|---|
➖ | file_tree | memory utilization | +3.37 | [+3.26, +3.48] |
➖ | process_agent_real_time_mode | memory utilization | +1.50 | [+1.46, +1.55] |
➖ | idle | memory utilization | +0.94 | [+0.90, +0.98] |
➖ | process_agent_standard_check | memory utilization | +0.65 | [+0.60, +0.70] |
➖ | process_agent_standard_check_with_stats | memory utilization | +0.39 | [+0.34, +0.43] |
➖ | file_to_blackhole | % cpu utilization | +0.32 | [-5.90, +6.54] |
➖ | basic_py_check | % cpu utilization | +0.20 | [-2.27, +2.67] |
➖ | trace_agent_json | ingress throughput | +0.00 | [-0.04, +0.04] |
➖ | uds_dogstatsd_to_api | ingress throughput | +0.00 | [-0.20, +0.20] |
➖ | trace_agent_msgpack | ingress throughput | -0.02 | [-0.03, -0.01] |
➖ | tcp_dd_logs_filter_exclude | ingress throughput | -0.02 | [-0.05, +0.00] |
➖ | otel_to_otel_logs | ingress throughput | -0.36 | [-0.79, +0.07] |
➖ | tcp_syslog_to_blackhole | ingress throughput | -0.71 | [-0.78, -0.63] |
➖ | uds_dogstatsd_to_api_cpu | % cpu utilization | -2.11 | [-5.01, +0.78] |
➖ | pycheck_1000_100byte_tags | % cpu utilization | -2.18 | [-7.07, +2.71] |
Explanation
A regression test is an A/B test of target performance in a repeatable rig, where "performance" is measured as "comparison variant minus baseline variant" for an optimization goal (e.g., ingress throughput). Due to intrinsic variability in measuring that goal, we can only estimate its mean value for each experiment; we report uncertainty in that value as a 90.00% confidence interval denoted "Δ mean % CI".
For each experiment, we decide whether a change in performance is a "regression" -- a change worth investigating further -- if all of the following criteria are true:
-
Its estimated |Δ mean %| ≥ 5.00%, indicating the change is big enough to merit a closer look.
-
Its 90.00% confidence interval "Δ mean % CI" does not contain zero, indicating that if our statistical model is accurate, there is at least a 90.00% chance there is a difference in performance between baseline and comparison variants.
-
Its configuration does not mark it "erratic".
Superseded by #24373 to clean commit history |
What does this PR do?
sqlite_db_client.go
forpodman
having exact parity with the current BoltDB clientdb_client.go
to support newer Podman versionspodman
feature :podman_db_path
is provided by the user OR/var/lib/containers/storage
exists (previously, only if/var/lib/containers
exists)config.go
to defaultpodman_db_path
to an empty string instead of/var/lib/containers/storage/libpod/bolt_state.db
podman
workloadmeta collector behaviour :/var/lib/containers
exists on the system : this could cause a loop of logs about/var/lib/containers/storage/libpod/bolt_state.db
not being accessible to the host Agent (running underdd-agent
).sql
or.db
to select the client to useMotivation
podman
to newer versions that default to the SQLite backend (with the BoltDB backend being deprecated in 5.0+)Additional Notes
AllContainers
function from the podman Go package returning the same type, an array of containers with their configuration and their state.Possible Drawbacks / Trade-offs
Describe how to test/QA your changes
2 environments/versions of podman will be needed :
sudo apt-get install podman -yq
(.deb releases are very far behindmain
)sudo yum -y install podman
(4.8.x+)podman
containers can be run both in rootless and rootfull mode : both behaviours should be tested.Rootfull :
Rootless (e.g. run by the
ubuntu
user) :podman
workloadmeta collector is working in both rootfull and rootless by runningagent workload-list -v
: assess containers with runtimepodman
are present matching ids from the(sudo) podman ps
commandpodman
feature is automatically detected as/var/lib/containers/storage
is mounted inside your Agentpodman_db_path
, e.g. using-v /var/lib/containers/storage:/abc:ro
(mounting the storage file in/abc
) and-e DD_PODMAN_DB_PATH=/abc/libpod/bolt_state.db
(providing the path to the DB location inside the Agent)podman
support) (depends on the cgroups version on the VM) :