From 0ade5385619721bcd7e4e94869a9b6ed477faa76 Mon Sep 17 00:00:00 2001 From: Arunan Date: Fri, 2 Feb 2024 08:51:05 +0530 Subject: [PATCH] Introduce config related to Passthru improvements Related to https://github.com/wso2/api-manager/issues/1792 --- distribution/src/resources/config-tool/default.json | 8 ++++++++ distribution/src/resources/config-tool/key-mappings.json | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/distribution/src/resources/config-tool/default.json b/distribution/src/resources/config-tool/default.json index 19c11ee385..019d12c782 100644 --- a/distribution/src/resources/config-tool/default.json +++ b/distribution/src/resources/config-tool/default.json @@ -97,8 +97,11 @@ "passthru_properties.'http.socket.timeout'": "180000", "passthru_properties.'worker_pool_size_core'": "400", + "passthru_properties.'secondary_worker_pool_size_core'": "400", "passthru_properties.'worker_pool_size_max'": "400", + "passthru_properties.'secondary_worker_pool_size_max'": "400", "passthru_properties.'worker_pool_queue_length'": "-1", + "passthru_properties.'secondary_worker_pool_queue_length'": "-1", "passthru_properties.'io_buffer_size'": "16384", "passthru_properties.'http.max.connection.per.host.port'": "32767", "passthru_properties.'http.user.agent.preserve'": false, @@ -106,6 +109,11 @@ "passthru_properties.'http.connection.disable.keepalive'": false, "passthru_properties.'valid.max.message.size.in.bytes'": "81920", "passthru_properties.'force.json.message.reverseProxyMode'": false, + "passthru_properties.'consume_and_discard'": true, + "passthru_properties.'expected_max_queueing_time'": "30000", + "passthru_properties.'consume_and_discard_by_secondary_pool'": true, + "passthru_properties.'expected_max_queueing_time_for_message_discard_worker'": "30000", + "passthru_properties.'close_socket_on_endpoint_timeout'": "false", "transport.http.preserve_http_headers": ["Content-Type"], "transport.http.listener.enable": true, diff --git a/distribution/src/resources/config-tool/key-mappings.json b/distribution/src/resources/config-tool/key-mappings.json index af8094dddd..b60c3bd615 100644 --- a/distribution/src/resources/config-tool/key-mappings.json +++ b/distribution/src/resources/config-tool/key-mappings.json @@ -117,8 +117,11 @@ "transport.http.block_service_list": "passthru_properties.'http.block_service_list'", "transport.http.connection_timeout": "passthru_properties.'http.connection.timeout'", "transport.http.core_worker_pool_size": "passthru_properties.'worker_pool_size_core'", + "transport.http.secondary_worker_pool_size_core": "passthru_properties.'secondary_worker_pool_size_core'", "transport.http.max_worker_pool_size": "passthru_properties.'worker_pool_size_max'", + "transport.http.secondary_worker_pool_size_max": "passthru_properties.'secondary_worker_pool_size_max'", "transport.http.worker_pool_queue_length": "passthru_properties.'worker_pool_queue_length'", + "transport.http.secondary_worker_pool_queue_length": "passthru_properties.'secondary_worker_pool_queue_length'", "transport.http.io_buffer_size": "passthru_properties.'io_buffer_size'", "transport.http.max_http_connection_per_host_port": "passthru_properties.'http.max.connection.per.host.port'", "transport.http.preserve_http_user_agent":"passthru_properties.'http.user.agent.preserve'", @@ -130,6 +133,11 @@ "transport.http.force_xml_validation": "passthru_properties.'force.xml.message.validation'", "transport.http.force_json_validation": "passthru_properties.'force.json.message.validation'", "transport.http.reverse_proxy_mode": "passthru_properties.'force.json.message.reverseProxyMode'", + "transport.http.consume_and_discard": "passthru_properties.'consume_and_discard'", + "transport.http.expected_max_queueing_time": "passthru_properties.'expected_max_queueing_time'", + "transport.http.consume_and_discard_by_secondary_pool": "passthru_properties.'consume_and_discard_by_secondary_pool'", + "transport.http.expected_max_queueing_time_for_message_discard_worker": "passthru_properties.'expected_max_queueing_time_for_message_discard_worker'", + "transport.http.close_socket_on_endpoint_timeout": "passthru_properties.'close_socket_on_endpoint_timeout'", "transport.http.listener.port": "transport.http.listener.parameter.port", "transport.http.listener.wsdl_epr_prefix":"transport.http.listener.parameter.WSDLEPRPrefix",