Apollo will only perform actions on Entities when all constraints, such as maintenance windows and Product dependencies, are satisfied. However, in emergency situations such as a stability incident, you can override the constraints imposed by Apollo and/or the Apollo Plan priority queue to execute a Plan as soon as possible. This is done using commands.
When you issue a command, Apollo will execute the requested action as soon as there is no other active Plan or command on the Entity. If the action must be performed immediately, you can abort an active Plan by creating a suppression window for the Entity and you can abort an active command as described later in this section.
After you execute a command, Apollo will continue evaluating potential Plans for the Entity. It is important to consider other actions that you can use alongside commands, such as recalling a Release and creating a suppression window. Without these actions, the change made using the command could be reverted. For example, if you execute a command to downgrade an Entity without recalling the current Release or creating an Entity-level suppression window, Apollo may issue a plan to upgrade this Entity back if it satisfies all the relevant constraints.
Entity or Environment operators can issue a command by navigating to an Entity's home page and selecting Execute command... from the Actions dropdown menu.
Apollo supports three types of commands: Enforce config, Enforce config and version, and Install. Selecting a command will open a dialog where you can provide a rationale for issuing the command. Once the command is issued, Apollo will attempt to execute it as soon as all necessary conditions are met. You can monitor the progress of the command and see any previously executed commands under the Commands tab of the Entity page.
Only a single command can be pending or executing per Entity. You cannot issue a command for an Entity until the last command you issued has terminated.
This command type will apply the latest configuration overrides to the Entity based on the current running Release.
This command type will change the current Release of the Entity to the selected Target version and apply the latest configuration overrides applicable to that version.
This command is available for Entities showing the Install pending status. It will install the selected Target Version of the Product in the Environment.
Once a command is issued its status will become pending, meaning that Apollo is waiting for the necessary conditions to be met before executing the command. Generally a command will be in pending status briefly, and will be recommended to the agent at the earliest possible opportunity. However, a command can be blocked from running if Apollo is already doing other work that conflicts with the command. For example, Apollo will never run a command on an Entity that is the target of an active Plan.
If your command is blocked, you can view the reason by hovering over the information icon in its status. If you need your command to run urgently, you can cancel any conflicting Plans by creating suppression windows on the associated Entities.
Most work done by Apollo, such as upgrades and configuration changes, is subject to a number of constraints. For instance, Apollo will only perform upgrades on Entities during maintenance windows and it will only upgrade services that are not in an error state. Commands are unique in two respects:
From the Entity page you can access the Commands tab to view all commands that were executed for this Entity in the past six months.
For every command, it will display the following:
Any issued or executing commands for an Entity will be displayed at the top of Commands tab.
If you have issued a command and you no longer want it to execute, or it has already started executing but you want to stop it, you can cancel or abort the command. If you cancel a command before it starts executing, the command will never be recommended to the agent. If you abort a command while it is executing, the agent will stop executing the command. Apollo cannot guarantee that an Entity will be in a healthy state after you abort a command. However, Apollo will automatically attempt to start any nodes that are left stopped.
Cancelling a Plan may not be immediate because Apollo cannot terminate a Plan without the agent’s consent. Apollo will communicate to the agent that the Plan should be aborted, but in cases where the agent is down or unresponsive, this could take a long time or never happen.