Increase gRPC message size (#1425)

ISSUE=#1422
master
gaschler 2018-09-13 15:35:59 +02:00 committed by Wally B. Feed
parent f995744c63
commit 601fc3c7d0
1 changed files with 3 additions and 0 deletions

View File

@ -50,6 +50,7 @@ namespace cloud {
namespace { namespace {
static auto* kIncomingDataQueueMetric = metrics::Gauge::Null(); static auto* kIncomingDataQueueMetric = metrics::Gauge::Null();
constexpr int kMaxMessageSize = 100 * 1024 * 1024; // 100 MB
const common::Duration kPopTimeout = common::FromMilliseconds(100); const common::Duration kPopTimeout = common::FromMilliseconds(100);
} // namespace } // namespace
@ -64,6 +65,8 @@ MapBuilderServer::MapBuilderServer(
map_builder_server_options.num_grpc_threads()); map_builder_server_options.num_grpc_threads());
server_builder.SetNumEventThreads( server_builder.SetNumEventThreads(
map_builder_server_options.num_event_threads()); map_builder_server_options.num_event_threads());
server_builder.SetMaxSendMessageSize(kMaxMessageSize);
server_builder.SetMaxReceiveMessageSize(kMaxMessageSize);
if (!map_builder_server_options.uplink_server_address().empty()) { if (!map_builder_server_options.uplink_server_address().empty()) {
local_trajectory_uploader_ = CreateLocalTrajectoryUploader( local_trajectory_uploader_ = CreateLocalTrajectoryUploader(
map_builder_server_options.uplink_server_address(), map_builder_server_options.uplink_server_address(),