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
  • Operations for components
  • Application
  • Datastores
  • Operations for Service
Export as PDF
  1. Onboard Your Service

Operating Service & Components

This page covers Redeploy, Rolling-restart, Add-component, & remove-component.

PreviousKafka OperationsNextRedeploy

Last updated 1 year ago

Operations on existing deployed service or components allow faster changes to desired changes. Odin enables this via odin operate command.

You can use odin operate service or odin operate component as per your requirement. The syntax for odin operate is as follows

// Operating a service using a json file
odin operate service --operation <operationName> --name <serviceName> --env <envName> --file <fileName>

//Operating a service using the json content inline
odin operate service --operation <operationName> --name <serviceName> --env <envName> --options <JsonInline>

Exhaustive list of operationName can be found here -

//Operating a component
odin operate component --name <component name> --service <service name> --operation <operation> --options <options> --env <env name>

Operations for components

Below is a list of available operations on various components and options that can be passed to them

Application

Available operations

Datastores

Optimus Aerospike [6.3.0.7-1.0.0]

Available operations

Operations for Service

Available operations for service are -

Operate command is available for versions 1.3.0-beta and above

Scale
add_component
remove_component
redeploy
rolling-restart
Operations for a Service