Update Consumer Adapter

This section describes the procedure to update the following Consumer Adapter components:
  • Egress Gateway Service image
  • HPA configuration
  • Egress Gateway Service parameters
Perform the following steps to update the following Consumer Adapter components:
  1. Edit the following parameters in the values.yaml file of the Admin service helm charts at <chartpath>/charts/ocnaddadminsvc/values.yaml:

    Table 10-2 Parameters in Consumer Adapter

    Parameters Default Values Description
    OCNADD_CONSUMER_ADAPTER_IMAGE ocnaddconsumeradapter:<tag> Egress Adapter Image including image URI.
    OCNADD_ADAPTER_THIRD_PARTY_INTERVAL 10000 The interval in ms after which adapter will retry an endpoint in case of endpoint failure.
    OCNADD_ADAPTER_MAX_PARTITION 20 The maximum number of partitions to be available in of the topic that adapter is reading from.
    OCNADD_ADAPTER_POD_STABILIZATION_WINDOW_SECONDS 60 If the result is a downscaling operation, then you can only downscale within a period controlled by this flag.
    OCNADD_ADAPTER_POD_SCALE_DOWN_VALUE 1 Egress Adapter's Horizontal Pod Auto scaler automatically scaled the number of replicas back down to this value if load decreases.
    OCNADD_ADAPTER_POD_SCALE_PERIOD_SECONDS 90 Waiting period (default 90sec) before scaling down Egress gateway. (This field represents the period between scaling operations for a given policy).
    OCNADD_ADAPTER_CPU_LIMIT 2500m Resource request parameter of Egress Adapter CPU Limit. The CPU limit defines a hard ceiling on how much CPU time that the container can use. Before updating this parameter make sure it should not exceed total cpu assigned for per namespace resource qoutes.
    OCNADD_ADAPTER_CPU_REQUEST 2500m Resource request parameter of Egress Adapter CPU REQUEST, it must be less than equal to CPU LIMIT. The CPU request typically defines a weighting.
    OCNADD_ADAPTER_MEMORY_REQUEST 8Gi The minimum memory requirement for adapter.
    OCNADD_ADAPTER_MEMORY_LIMIT 8Gi The maximum memory requirement for adapter.
    OCNADD_ADAPTER_EMPHEMERAL_STORAGE_LIMIT 400Mi The maximum ephemeral storage requirement for consumer adapter microservice.
    OCNADD_ADAPTER_EMPHEMERAL_STORAGE_REQUEST 200Mi The minimum ephemeral storage requirement for consumer adapter microservice.
    OCNADD_ADAPTER_MAX_POLL_RECORDS 25 The maximum number of records returned from a Kafka to Consumer Adapter. It only controls the number of records returned from poll, but does not affect fetching.
    OCNADD_ADAPTER_CLIENT_TIMEOUT 12 The maximum time interval to wait till the response is timed out.
    OCNADD_ADAPTER_CLIENT_CHANNEL_TIMEOUT 12 Maximum Connection attempt timeout
    OCNADD_ADAPTER_CLIENT_CONN_POOL_MAX_CNT 400 Maximum connection per connection pool.
    OCNADD_ADAPTER_CLIENT_CONN_POOL_MAX_IDLE 40 Maximum time connection stays idle in pool.
    OCNADD_ADAPTER_CLIENT_CONN_POOL_MAX_LIFE 3600 Maximum time connection alive in pool.
    OCNADD_ADAPTER_CLIENT_CONN_POOL_MAX_PENDING 20 The maximum time after which a pending acquire must complete or the TimeoutException will be thrown
    OCNADD_ADAPTER_CLIENT_PENDING_CONN 40 The maximum number of registered requests for acquire to keep in a pending queue.
    OCNADD_ADAPTER_CLIENT_KEEPALIVE_IDLE 20 Maximum idle time before sending keepalive probes.
    OCNADD_ADAPTER_CLIENT_KEEPALIVE_INT 20 Time interval between keepalive probes.
    OCNADD_ADAPTER_CLIENT_KEEPALIVE_CNT 10 Maximum number of probes before dropping connection
    OCNADD_ADAPTER_CONNECTION_THRESHOLD 5 Maximum number of failures/success for adapter to come in and out of circuit breaker for a particular endpoint.
    OCNADD_ADAPTER_LOG_LEVEL_NETTY INFO The web client netty log level for consumer adapter.
    OCNADD_ADAPTER_LOG_LEVEL INFO The application log level for consumer adapter.
    OCNADD_ADAPTER_MIN_REPLICAS 1 Minimum Number of consumer adapter pods to be deployed at deployment time.
    OCNADD_ADAPTER_MAX_REPLICAS 16 Maximum Replicas of Egress Adapter service for Horizontal Pod Scaling in Kubernetes.
    OCNADD_ADAPTER_SERVICEID_RETRY 20 Minimum Replicas of Egress Adapter service for Horizontal Pod Scaling in Kubernetes.
    OCNADD_ADAPTER_LIVENESS_DELAY 16 This time interval tells the kubelet to wait for the given period before performing the first liveness probe.
    OCNADD_ADAPTER_LIVENESS_PERIOD_SECONDS 15 The time interval after which the kubelet will perform the liveness probe.
  2. Run the following command to apply the changes:
    helm upgrade <release_name> <helm_chart> --set global.env.admin.OCNADD_ADAPTER_UPGRADE_ENABLE=true -n <namespace-name>
  3. Run the following command to check the pod status:
    watch kubectl get po -n <namespace-name>

    All the pods must be in running state.

  4. To verify the updated parameters, run the following command:
    kubectl describe po <adapter-pod-name> -n <namespace-name>