TSG-23843 请sce提供健康状态查询的HTTP服务
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
#include "utils.h"
|
||||
#include "sf_metrics.h"
|
||||
#include "global_metrics.h"
|
||||
#include "http_healthcheck.h"
|
||||
|
||||
struct breakpad_instance *g_breakpad = NULL;
|
||||
static int is_need_stop = 0;
|
||||
@@ -212,6 +213,8 @@ int main(int argc, char **argv)
|
||||
}
|
||||
}
|
||||
|
||||
http_healthcheck_server_start(profile);
|
||||
|
||||
timestamp_update(ctx->ts);
|
||||
ts_update_interval = timestamp_update_interval_ms(ctx->ts);
|
||||
g_metrics_last_send_ts = timestamp_get_msec(ctx->ts);
|
||||
@@ -230,6 +233,7 @@ int main(int argc, char **argv)
|
||||
}
|
||||
|
||||
error_out:
|
||||
http_healthcheck_server_stop();
|
||||
for (int i = 0; i < ctx->nr_worker_threads; i++)
|
||||
{
|
||||
while (1)
|
||||
|
||||
Reference in New Issue
Block a user