Odin
  • Introduction
  • Why Odin?
  • Key Concepts
    • Environment
      • Environment Type
    • Provisioning
      • Provisioning Config for Component Types
    • Component
      • Available Component Types
      • Component Type reference
        • Optimus Components
          • Aerospike [6.3.0.7-1.0.0]
    • Service
      • Know Your Service Definition
    • Versioning
      • Clearing the Confusion: A Simplified Guide to Artifact, Component, and Service Versions
    • Service Sets
    • Labels
  • Reference
    • CLI reference
  • Onboard Your Service
    • Installation
    • Configure
    • Odin -h
    • Getting Started
    • Create Environment
      • Operations on Environment
    • Service Definition
    • Provisioning Config
    • Deploy Service
    • Release Service
    • Optimus Datastore Operations
      • How to use Optimus Datastore in my service?
      • RDS Operations
      • Aerospike Operations
      • Kafka Operations
    • Operating Service & Components
      • Redeploy
        • In Place Deployment
        • Blue Green Deployment
      • Rolling Restart
      • Adding & removing components
      • Revert a deployment for application component
      • Downscaling a Passive Stack
      • Updating the no. of stacks of application component
    • Dev <> QA iteration
    • Frequently Asked Questions
    • Deploy Concrete Service
    • Undeploy Service
    • Delete Environment
    • Appendix
  • How To
    • Define error threshold for canary deployment
    • Add or Remove a component in an already deployed service
    • Integrate mono-repo(cronjobs) with Odin
    • Deploy crontab with Odin
    • Integrate Data pipeline with Odin
    • Push logs to log central
    • Build artifacts for multi module applications
    • Load test with Odin
    • Track Deployments against Commit Ids
    • Deploy Service on Production - Dream11
    • How and when images are created
    • Check logs for deployed infrastructure - Dream11
    • Onboard Stepfunction as a component
    • Onboard Serverless as a component
    • Login to Kubernetes clusters
  • Release Notes
    • 1.2.0-beta.2 - 11 August, 2022
    • Odin October Release
    • Odin 1.2.0 - Nov 9th 2022
    • Odin February Release
Powered by GitBook
On this page
  • Skip a kubernetes environment from auto-suspension
  • Manual suspension of environment
  • Manually resume an environment
  • Frequently Asked Questions
Export as PDF
  1. Onboard Your Service
  2. Create Environment

Operations on Environment

PreviousCreate EnvironmentNextService Definition

Last updated 1 year ago

Odin provides users with the capabilities where users can use CLI commands to customise the default suspension and resume schedule for kube based environments. Currently the following operations are supported:

Skip a kubernetes environment from auto-suspension

//please replace YourEnvName with the environment name that you want to operate on
odin operate env --name YourEnvName --operation skip-suspend

The above command will not downscale any components of the environment in the next auto suspension schedule and defer this to next to next suspension schedule. E.g: If the auto-suspension is scheduled for 2024-01-01 20:00PM, and you execute the above command at 2024-01-01 19:00PM, your environment will not be suspended at 20:00PM. However, next day your environment will again be suspended at 2024-01-02 20:00PM.

Manual suspension of environment

//please replace YourEnvName with the environment name that you want to operate on
odin operate env --name YourEnvName --operation suspend

The above command will downscale all the components of the environment with an ETA of <2minutes for executing the request. However, this operation is applicable only for containerised components. The environment remains suspended until user manually resumes the environment.

Manually resume an environment

//please replace YourEnvName with the environment name that you want to operate on
odin operate env --name YourEnvName --operation resume

The above command will upscale all the downscale component of the particular environment. This operation can be used to resume any auto suspended or manually suspended environment.

Frequently Asked Questions

Q: Can I downscale my EC2 based components as part of environment suspension?

A: No, only containerised components are available for downscaling.

Q: I tried suspending my environment manually, but it is still running. Why?

A: Each suspension request takes upto 2-mins to get processed. Please check the status of environment after a while.

Q: Can I skip my environment from suspension for a long time duration?

A: No, if you user skip-suspend operation, this will skip the suspension of your environment from next auto-suspension schedule, not beyond that.

Q: Can anyone suspend my environment?

A: Currently, due to lack of RBAC, anyone can suspend any environment.

Skip my environment from suspension
Manually suspend my environment
Resume my environment