|
4 | 4 |
|
5 | 5 | package io.airbyte.workers.sync;
|
6 | 6 |
|
7 |
| -import static io.airbyte.config.EnvConfigs.SOCAT_KUBE_CPU_LIMIT; |
8 |
| -import static io.airbyte.config.EnvConfigs.SOCAT_KUBE_CPU_REQUEST; |
9 | 7 | import static io.airbyte.metrics.lib.ApmTraceConstants.Tags.PROCESS_EXIT_VALUE_KEY;
|
10 | 8 | import static io.airbyte.metrics.lib.ApmTraceConstants.WORKER_OPERATION_NAME;
|
11 | 9 | import static io.airbyte.workers.process.Metadata.CONNECTION_ID_LABEL_KEY;
|
|
18 | 16 | import io.airbyte.commons.temporal.sync.OrchestratorConstants;
|
19 | 17 | import io.airbyte.commons.workers.config.WorkerConfigs;
|
20 | 18 | import io.airbyte.config.ResourceRequirements;
|
21 |
| -import io.airbyte.featureflag.ConcurrentSocatResources; |
22 | 19 | import io.airbyte.featureflag.Connection;
|
23 | 20 | import io.airbyte.featureflag.FeatureFlagClient;
|
24 | 21 | import io.airbyte.featureflag.UseCustomK8sScheduler;
|
|
36 | 33 | import io.fabric8.kubernetes.api.model.DeletionPropagation;
|
37 | 34 | import io.fabric8.kubernetes.api.model.Pod;
|
38 | 35 | import io.fabric8.kubernetes.client.KubernetesClientException;
|
39 |
| -import io.micronaut.core.util.StringUtils; |
40 | 36 | import java.nio.file.Path;
|
41 | 37 | import java.time.Duration;
|
42 | 38 | import java.util.Collections;
|
@@ -135,15 +131,6 @@ public OUTPUT run(final INPUT input, final Path jobRoot) throws WorkerException
|
135 | 131 | // Merge in the env from the ContainerOrchestratorConfig
|
136 | 132 | containerOrchestratorConfig.environmentVariables().entrySet().stream().forEach(e -> envMap.putIfAbsent(e.getKey(), e.getValue()));
|
137 | 133 |
|
138 |
| - // Allow for the override of the socat pod CPU resources as part of the concurrent source read |
139 |
| - // experimentation |
140 |
| - final String socatResources = featureFlagClient.stringVariation(ConcurrentSocatResources.INSTANCE, new Connection(connectionId)); |
141 |
| - if (StringUtils.isNotEmpty(socatResources)) { |
142 |
| - LOGGER.info("Overriding Socat CPU limit and request to {}.", socatResources); |
143 |
| - envMap.put(SOCAT_KUBE_CPU_LIMIT, socatResources); |
144 |
| - envMap.put(SOCAT_KUBE_CPU_REQUEST, socatResources); |
145 |
| - } |
146 |
| - |
147 | 134 | final Map<String, String> fileMap = new HashMap<>(additionalFileMap);
|
148 | 135 | fileMap.putAll(Map.of(
|
149 | 136 | OrchestratorConstants.INIT_FILE_APPLICATION, application,
|
|
0 commit comments