More Info:

Ensure flex resource scheduling goal is set for dataflow jobs

Risk Level

Low

Address

Operational Maturity, Reliability

Compliance Standards

CBP

Triage and Remediation

Remediation

To remediate the “Flex Resource Scheduling Goal Should Be Set” misconfiguration in GCP using GCP console, follow the below steps:

  1. Log in to your GCP console.
  2. Navigate to the Cloud Scheduler page.
  3. Click on the “Create Job” button.
  4. In the “Job configuration” section, provide a name for the job.
  5. In the “Frequency” section, select the frequency at which the job should run.
  6. In the “Target” section, select the target for the job. This can be a Pub/Sub topic, HTTP target or App Engine HTTP target.
  7. In the “Payload” section, provide the payload for the target.
  8. In the “Advanced options” section, click on the “Add another setting” button.
  9. Select the “Flex” option from the drop-down list.
  10. In the “Flex” section, set the “min_instances” and “max_instances” values based on your requirements.
  11. Click on the “Create” button to create the job.

Once the job is created, it will automatically adjust the number of instances based on the workload, thereby optimizing the resource utilization.