Configuring Python 3

You can run Python 2 or Python v3.9 automation scripts in the Orchestration & Automation application. Python 3 is the default language and is configured securely to manage a significant workload.

About this task

For more information about the differences between Python 2 and Python 3 in Orchestration & Automation, see Python 2 and Python 3 differences.

The default configuration settings are designed to handle a large workload of automation scripts per second. The default settings are as follows:
  • cases-scripting cpu limit: 3000m
  • min_pods: 3
  • max_pods: 8
At three pods, the application can process up to 15 scripts per second. If this workload is sustained, the application can scale up to 8 pods, and handle up to 30 scripts per second. It takes approximately five seconds to scale from three to eight pods. Each idle Python 3 pod uses 60 MB of memory and 0.015 CPU cores.

You might experience performance problems if you are running very large workloads and the default settings are too low. If your workloads are small, you might want to decrease the defaults, although this not typically recommended.

If you need to increase or decrease resources, change the min_pods or max_pods settings.

Procedure

  1. Log on to the Red Hat OpenShift Container Platform as OpenShift Administrator.
  2. Click Workloads > ConfigMaps and select your IBM Security QRadar Suite project; for example cp4s.
  3. From ConfigMaps, filter to search for the soar-resources ConfigMap and select it.
  4. Click Actions > Edit ConfigMap.
  5. In the name: casespython3Scripting section, change the min_pods or max_pods values as required. The following graphic shows the default values for Python 3 in the configMap.
    The surrounding text describes this graphic, which is an example of the configMap with the configuration.
  6. Save the configMap and restart the cp4s-soar-operator pod for the changes to take effect.