File tree Expand file tree Collapse file tree 2 files changed +10
-5
lines changed
src/firecracker/src/api_server Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -48,6 +48,11 @@ and this project adheres to
48
48
the UFFD Unix domain socket open to prevent the race condition between the
49
49
guest memory mappings message and the shutdown event that was sometimes
50
50
causing arrival of an empty message on the UFFD handler side.
51
+ - [ #5143 ] ( https://github.com/firecracker-microvm/firecracker/pull/5143 ) : Fixed
52
+ to report ` process_startup_time_us ` and ` process_startup_time_cpu_us ` metrics
53
+ for ` api_server ` right after the API server starts, while previously reported
54
+ before applying seccomp filter and starting the API server. Users may observe
55
+ a bit longer startup time metrics.
51
56
52
57
## [ 1.11.0]
53
58
Original file line number Diff line number Diff line change @@ -70,11 +70,6 @@ impl ApiServer {
70
70
// Set the api payload size limit.
71
71
server. set_payload_max_size ( api_payload_limit) ;
72
72
73
- // Store process start time metric.
74
- process_time_reporter. report_start_time ( ) ;
75
- // Store process CPU start time metric.
76
- process_time_reporter. report_cpu_start_time ( ) ;
77
-
78
73
// Load seccomp filters on the API thread.
79
74
// Execution panics if filters cannot be loaded, use --no-seccomp if skipping filters
80
75
// altogether is the desired behaviour.
@@ -88,6 +83,11 @@ impl ApiServer {
88
83
server. start_server ( ) . expect ( "Cannot start HTTP server" ) ;
89
84
info ! ( "API server started." ) ;
90
85
86
+ // Store process start time metric.
87
+ process_time_reporter. report_start_time ( ) ;
88
+ // Store process CPU start time metric.
89
+ process_time_reporter. report_cpu_start_time ( ) ;
90
+
91
91
loop {
92
92
let request_vec = match server. requests ( ) {
93
93
Ok ( vec) => vec,
You can’t perform that action at this time.
0 commit comments