Skip to content

Commit

Permalink
feat: make httpv2 connection equal to num threads
Browse files Browse the repository at this point in the history
  • Loading branch information
gdgagangeek committed Feb 28, 2024
1 parent dfdf3e3 commit c8cf787
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ protected static Map<String, String> addAdditionalConfigsForSinkConnectors(Map<S
finalConfig.put("SINK_CONNECTOR_SCHEMA_PROTO_ALLOW_UNKNOWN_FIELDS_ENABLE", env.getOrDefault("INPUT_SCHEMA_PROTO_ALLOW_UNKNOWN_FIELDS_ENABLE", "false"));
finalConfig.put("SINK_CONNECTOR_SCHEMA_MESSAGE_MODE",
env.getOrDefault("KAFKA_RECORD_PARSER_MODE", "").equals("key") ? SinkConnectorSchemaMessageMode.LOG_KEY.name() : SinkConnectorSchemaMessageMode.LOG_MESSAGE.name());
finalConfig.put("SINK_HTTPV2_MAX_CONNECTIONS", env.getOrDefault("SINK_POOL_NUM_THREADS", "1"));
return finalConfig;
}
}

0 comments on commit c8cf787

Please sign in to comment.