Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce CPU for all Services #4339

Open
10 tasks
ninosamson opened this issue Feb 10, 2025 · 0 comments
Open
10 tasks

Reduce CPU for all Services #4339

ninosamson opened this issue Feb 10, 2025 · 0 comments
Labels
Devops Devops

Comments

@ninosamson
Copy link
Collaborator

ninosamson commented Feb 10, 2025

User Story: As a SIMS team, we need to optimize resources effectively as there are only a limited number of shared computing resources across the many government teams.

Acceptance Criteria:

  • This effort is targeting CPU resource adjustment ONLY and exposing memory configuration also (NO MEMORY CHANGES REQUIRED AT THIS POINT).
  • For CPU optimization for DEV/TEST, collect current values and suggest some new values to be shared with the Team.
  • For other environments but DEV/TEST, have the variables configured with the current values.
  • For resources with individual configuration files: Redis, Crunchy, and ClamAV.
    • Reduce CPU utilization for DEV and TEST config files.
  • For resources without individual configuration files (api, queue-consumers, workers, web, form.io, mongo DB)
    • Expose per environment configuration for all PODs for CPU/memory as GitHub env variables. The deployments (yml) files should have parameters for CPU_LIMIT/CPU_REQUEST and MEMORY_LIMIT/MEMORY_REQUEST.
      • Remove CPU limits configuration from the yml deployments following the General guidelines from BC Gov.
      • Create new GitHub env variables for each deployment config to allow per environment configuration for each one.
        • For instance, for queue-consumers, create the below.
          • QUEUE_CONSUMERS_CPU_REQUEST
          • QUEUE_CONSUMERS_MEMORY_REQUEST (use the same value for MEMORY_LIMIT/MEMORY_REQUEST).
        • Have the variables mapped in the make file with the current default values hard-coded in the yml file as default values in the make variable declaration.
@ninosamson ninosamson added Business Items under Business Consideration Dev & Architecture Development and Architecture and removed Business Items under Business Consideration labels Feb 10, 2025
@andrewsignori-aot andrewsignori-aot added the Devops Devops label Feb 11, 2025
@ninosamson ninosamson removed the Dev & Architecture Development and Architecture label Feb 11, 2025
@ninosamson ninosamson changed the title Reduce CPU in DEV/TEST for Services Reduce CPU for all Services Feb 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Devops Devops
Projects
None yet
Development

No branches or pull requests

2 participants