From 31ededef8f2480c6316ac5a3cce69eb5e4aabd5f Mon Sep 17 00:00:00 2001 From: Philipp Thun Date: Tue, 12 Oct 2021 10:55:04 +0200 Subject: [PATCH] Introduce experimental use_optimized_json_encoder configuration --- jobs/cloud_controller_ng/spec | 4 ++++ .../cloud_controller_ng/templates/cloud_controller_ng.yml.erb | 2 ++ 2 files changed, 6 insertions(+) diff --git a/jobs/cloud_controller_ng/spec b/jobs/cloud_controller_ng/spec index a5f54e256d..9d94d1d563 100644 --- a/jobs/cloud_controller_ng/spec +++ b/jobs/cloud_controller_ng/spec @@ -1188,6 +1188,10 @@ properties: description: "How many threads a single cloud controller instance's thin server will attempt to use. Alter at your own peril." default: 20 # inherited from default in Thin/EventMachine + cc.experimental.use_optimized_json_encoder: + description: "Switch to a different Ruby JSON encoder, i.e. Oj (https://github.com/ohler55/oj)." + default: false + cc.kubernetes.host_url: description: "Kubernetes master API URL" cc.kubernetes.service_account.name: diff --git a/jobs/cloud_controller_ng/templates/cloud_controller_ng.yml.erb b/jobs/cloud_controller_ng/templates/cloud_controller_ng.yml.erb index 48227523ce..460a359760 100644 --- a/jobs/cloud_controller_ng/templates/cloud_controller_ng.yml.erb +++ b/jobs/cloud_controller_ng/templates/cloud_controller_ng.yml.erb @@ -514,6 +514,8 @@ internal_route_vip_range: <%= internal_vip_range %> threadpool_size: <%= p("cc.experimental.thin_server.thread_pool_size") %> +use_optimized_json_encoder: <%= p("cc.experimental.use_optimized_json_encoder") %> + <% if_p("cc.kubernetes.host_url") do %> kubernetes: host_url: <%= p("cc.kubernetes.host_url") %>