diff --git a/be/src/common/config.cpp b/be/src/common/config.cpp index df720853c1f2ab..a90dee8fed6c08 100644 --- a/be/src/common/config.cpp +++ b/be/src/common/config.cpp @@ -520,6 +520,10 @@ DEFINE_Int32(brpc_light_work_pool_threads, "-1"); DEFINE_Int32(brpc_heavy_work_pool_max_queue_size, "-1"); DEFINE_Int32(brpc_light_work_pool_max_queue_size, "-1"); +//Enable brpc builtin services, see: +//https://brpc.apache.org/docs/server/basics/#disable-built-in-services-completely +DEFINE_Bool(enable_brpc_builtin_services, "true"); + // The maximum amount of data that can be processed by a stream load DEFINE_mInt64(streaming_load_max_mb, "102400"); // Some data formats, such as JSON, cannot be streamed. diff --git a/be/src/common/config.h b/be/src/common/config.h index 4b158f1e45e1db..e48bd648c605bf 100644 --- a/be/src/common/config.h +++ b/be/src/common/config.h @@ -1006,6 +1006,8 @@ DECLARE_mInt64(nodechannel_pending_queue_max_bytes); // The batch size for sending data by brpc streaming client DECLARE_mInt64(brpc_streaming_client_batch_bytes); +DECLARE_Bool(enable_brpc_builtin_services); + // Max waiting time to wait the "plan fragment start" rpc. // If timeout, the fragment will be cancelled. // This parameter is usually only used when the FE loses connection, diff --git a/be/src/service/brpc_service.cpp b/be/src/service/brpc_service.cpp index 6f2dc7aea38e50..45245cf478aec0 100644 --- a/be/src/service/brpc_service.cpp +++ b/be/src/service/brpc_service.cpp @@ -71,6 +71,8 @@ Status BRpcService::start(int port, int num_threads) { sslOptions->default_cert.private_key = config::ssl_private_key_path; } + options.has_builtin_services = config::enable_brpc_builtin_services; + butil::EndPoint point; if (butil::str2endpoint(BackendOptions::get_service_bind_address(), port, &point) < 0) { return Status::InternalError("convert address failed, host={}, port={}", "[::0]", port);