automation-tests/pkg/api/server
Adrian Reber 80e56fa12b
Added optional container restore statistics
This adds the parameter '--print-stats' to 'podman container restore'.
With '--print-stats' Podman will measure how long Podman itself, the OCI
runtime and CRIU requires to restore a checkpoint and print out these
information. CRIU already creates process restore statistics which are
just read in addition to the added measurements. In contrast to just
printing out the ID of the restored container, Podman will now print
out JSON:

 # podman container restore --latest --print-stats
 {
     "podman_restore_duration": 305871,
     "container_statistics": [
         {
             "Id": "47b02e1d474b5d5fe917825e91ac653efa757c91e5a81a368d771a78f6b5ed20",
             "runtime_restore_duration": 140614,
             "criu_statistics": {
                 "forking_time": 5,
                 "restore_time": 67672,
                 "pages_restored": 14
             }
         }
     ]
 }

The output contains 'podman_restore_duration' which contains the
number of microseconds Podman required to restore the checkpoint. The
output also includes 'runtime_restore_duration' which is the time
the runtime needed to restore that specific container. Each container
also includes 'criu_statistics' which displays the timing information
collected by CRIU.

Signed-off-by: Adrian Reber <areber@redhat.com>
2021-11-15 11:50:25 +00:00
..
idle Refacter API server emphasis on logging 2021-09-10 15:07:25 -07:00
docs.go Add note about empty fields and null values for API responses 2021-10-01 13:18:52 -04:00
handler_api.go Refacter API server emphasis on logging 2021-09-10 15:07:25 -07:00
handler_logging.go Refacter API server emphasis on logging 2021-09-10 15:07:25 -07:00
handler_panic.go Refacter API server emphasis on logging 2021-09-10 15:07:25 -07:00
handler_rid.go Log Apache access_log-like entries at Info level [NO NEW TESTS NEEDED] 2021-11-05 10:34:02 -07:00
listener_api.go Make podman service log events 2020-11-19 14:42:56 -07:00
register_archive.go support container to container copy 2021-07-27 15:32:23 +02:00
register_auth.go [CI:DOCS] Set all operation id to be compatibile 2021-04-05 19:54:30 -07:00
register_containers.go Added optional container restore statistics 2021-11-15 11:50:25 +00:00
register_distribution.go bump go module to v3 2021-02-22 09:03:51 +01:00
register_events.go [CI:DOCS] Set all operation id to be compatibile 2021-04-05 19:54:30 -07:00
register_exec.go Fix resize race with podman exec -it 2021-06-16 16:43:30 +02:00
register_generate.go swagger: remove name wildcards 2021-04-07 15:21:44 +02:00
register_healthcheck.go swagger: remove name wildcards 2021-04-07 15:21:44 +02:00
register_images.go Merge pull request #12156 from matejvasek/docker-api-zero-value-fixes 2021-11-02 18:19:24 +01:00
register_info.go [CI:DOCS] Set all operation id to be compatibile 2021-04-05 19:54:30 -07:00
register_manifest.go Merge pull request #9121 from tmds/swagger_remove_name_wildcards 2021-04-08 13:04:23 -04:00
register_monitor.go bump go module to v3 2021-02-22 09:03:51 +01:00
register_networks.go Wire network interface into libpod 2021-09-15 20:00:20 +02:00
register_ping.go [CI:DOCS] Set all operation id to be compatibile 2021-04-05 19:54:30 -07:00
register_play.go teardown play kube 2021-08-24 14:26:14 -05:00
register_plugins.go bump go module to v3 2021-02-22 09:03:51 +01:00
register_pods.go Implement top streaming for containers and pods 2021-11-02 08:11:14 -07:00
register_secrets.go Add filtering functionality to http api secrets list 2021-09-03 10:29:31 +02:00
register_swagger.go bump go module to v3 2021-02-22 09:03:51 +01:00
register_swarm.go bump go module to v3 2021-02-22 09:03:51 +01:00
register_system.go [CI:DOCS] Set all operation id to be compatibile 2021-04-05 19:54:30 -07:00
register_version.go [CI:DOCS] Set all operation id to be compatibile 2021-04-05 19:54:30 -07:00
register_volumes.go Add until filter to volume ls filters list 2021-07-22 00:01:07 +02:00
server.go Fix CI flake on time of shutdown for API service 2021-10-12 09:53:19 -07:00
swagger.go Fix swagger definitions 2021-11-01 22:37:35 +01:00