Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions dictionary-octopus.txt
Original file line number Diff line number Diff line change
Expand Up @@ -623,6 +623,7 @@ undeploying
uniquestring
Unmarshal
unsandboxed
unsanitized
updateprogress
upgradeavailability
upgradelog
Expand Down
6 changes: 3 additions & 3 deletions src/pages/docs.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@
layout: src/layouts/Default.astro
pubDate: 2023-01-01
modDate: 2024-03-18
title: Hello, Octopus Deploy! 👋
title: Hello, Octopus! 👋
subtitle: Best-of-breed Continuous Delivery
navTitle: Introduction
crumbTitle: Docs
description: Need help with Octopus Deploy? Check out our comprehensive documentation covering everything from getting started to advanced issues and features.``
description: Need help with Octopus? Check out our comprehensive documentation covering everything from getting started to advanced issues and features.``
navOrder: 0
---
import RecentlyUpdated from '@components/RecentlyUpdated.astro';
import Card from 'src/components/Card.astro';

Octopus Deploy is a sophisticated, best-of-breed continuous delivery (CD) platform for modern software teams. Octopus offers powerful release orchestration, deployment automation, and runbook automation, while handling the scale, complexity and governance expectations of even the largest organizations with the most complex deployment challenges.
Octopus is a sophisticated, best-of-breed continuous delivery (CD) platform for modern software teams. Octopus offers powerful release orchestration, deployment automation, and runbook automation, while handling the scale, complexity and governance expectations of even the largest organizations with the most complex deployment challenges.

:::figure
:img{ src="/docs/img/getting-started/dashboard-light@2x.png" src-dark="/docs/img/getting-started/dashboard-dark@2x.png" alt="Octopus Dashboard" }
Expand Down
2 changes: 1 addition & 1 deletion src/pages/docs/administration/data/backup-and-restore.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ description: Information on where Octopus data is stored and how to backup and r
navOrder: 10
---

A successful disaster recovery plan for Octopus Deploy requires the ability to restore both:
A successful disaster recovery plan for Octopus requires the ability to restore both:

1. The Octopus [SQL Server Database](/docs/administration/data).
2. The Octopus [data stored on the file system](/docs/administration/managing-infrastructure/server-configuration-and-file-storage).
Expand Down
8 changes: 4 additions & 4 deletions src/pages/docs/administration/data/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,19 @@ description: Octopus uses a Microsoft SQL Server Database to store environments,
navOrder: 20
---

Octopus Deploy uses a Microsoft SQL Server database to store environments, projects, variables, releases, and deployment history. Some data is also [stored on the file system](/docs/administration/managing-infrastructure/server-configuration-and-file-storage).
Octopus uses a Microsoft SQL Server database to store environments, projects, variables, releases, and deployment history. Some data is also [stored on the file system](/docs/administration/managing-infrastructure/server-configuration-and-file-storage).

## Install Octopus Server {#installing}

Octopus Server requires access to a SQL Server to store relational data. You can create the database ahead of time or let the installer create it for you. Refer to [SQL Server Database requirements](/docs/installation/sql-server-database) for more information on the SQL Server editions supported by Octopus Deploy and installation instructions.
Octopus Server requires access to a SQL Server to store relational data. You can create the database ahead of time or let the installer create it for you. Refer to [SQL Server Database requirements](/docs/installation/sql-server-database) for more information on the SQL Server editions supported by Octopus and installation instructions.

## Routine maintenance {#maintenance}

You are responsible for the routine maintenance of your Octopus database. Performance problems with your SQL Server will make Octopus run and feel slow and sluggish. You should implement a routine maintenance plan for your Octopus database. Here is a [sure guide](https://oc.to/SQLServerMaintenanceGuide) (free e-book) for maintaining SQL Server. Our [Performance](/docs/administration/managing-infrastructure/performance/#sql-maintenance) section has some general recommendations that may help get you started.

### Database backups {#backups}

You are responsible for taking database backups and testing your disaster recovery plans. Refer to [Backup and restore](/docs/administration/data/backup-and-restore) for more information about backing up Octopus Deploy and recovering from failure.
You are responsible for taking database backups and testing your disaster recovery plans. Refer to [Backup and restore](/docs/administration/data/backup-and-restore) for more information about backing up Octopus and recovering from failure.

### High availability databases {#high-availability}

Expand All @@ -44,7 +44,7 @@ Customizing the Octopus database may cause problems when upgrading Octopus Serve

### Index recommendations

Each installation of Octopus Deploy will have different data and usage patterns. Some of our customers have huge environments and a few projects, others have many projects deploying to small environments. Some customers may create hundreds of releases each day, while others deploy releases every few days. As a result, the Database Engine Tuning Advisor, or hosted offerings like Azure SQL Database, may suggest performance optimizations like creating additional indexes.
Each installation of Octopus will have different data and usage patterns. Some of our customers have huge environments and a few projects, others have many projects deploying to small environments. Some customers may create hundreds of releases each day, while others deploy releases every few days. As a result, the Database Engine Tuning Advisor, or hosted offerings like Azure SQL Database, may suggest performance optimizations like creating additional indexes.

**Feel free to create database indexes that suit your scenario, but please understand the impact of modifying the schema.**

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ A scale-out event is when auto-scaling technology decides it is time to create a

The sections below will walk you through *how* to automate adding new nodes via a script.

### Downloading Octopus Deploy
### Downloading Octopus

All nodes in the Octopus High Availability cluster must be running the same version of Octopus Deploy. The server version is returned from the API by going to `[ServerURL]/api`, for example, `https://samples.octopus.app/api`.
All nodes in the Octopus High Availability cluster must be running the same version of Octopus. The server version is returned from the API by going to `[ServerURL]/api`, for example, `https://samples.octopus.app/api`.

:::figure
![the version number from the api](/docs/img/administration/high-availability/configure/images/retrieve-version-from-api.png)
Expand All @@ -31,9 +31,9 @@ All nodes in the Octopus High Availability cluster must be running the same vers
Unlike most API calls, the `/api` endpoint does not require an API key.
:::

Once you have the version, you can then download that from the Octopus Deploy website (or use [Chocolatey](https://chocolatey.org)). The URL to use is `https://download.octopusdeploy.com/octopus/Octopus.[Version]-x64.msi`, for example: `https://download.octopusdeploy.com/octopus/Octopus.2021.2.7650-x64.msi`.
Once you have the version, you can then download that from the Octopus website (or use [Chocolatey](https://chocolatey.org)). The URL to use is `https://download.octopusdeploy.com/octopus/Octopus.[Version]-x64.msi`, for example: `https://download.octopusdeploy.com/octopus/Octopus.2021.2.7650-x64.msi`.

Below is a sample script to download and install Octopus Deploy.
Below is a sample script to download and install Octopus.

<details data-group="auto-scaling-high-availability-nodes">
<summary>PowerShell (MSI)</summary>
Expand Down Expand Up @@ -74,7 +74,7 @@ choco install octopusdeploy --version=$versionToDownload -y

### Configuring the new node

After Octopus Deploy is installed, you'll need to configure it to point to your high availability cluster. To configure the node you'll need:
After Octopus is installed, you'll need to configure it to point to your high availability cluster. To configure the node you'll need:

- Octopus Master Key
- Database Server Name
Expand All @@ -83,7 +83,7 @@ After Octopus Deploy is installed, you'll need to configure it to point to your
The shared folder settings for BLOB storage are stored in the database.

:::div{.hint}
If you are using a mapped network drive, you'll need to configure that prior to configuring Octopus Deploy.
If you are using a mapped network drive, you'll need to configure that prior to configuring Octopus.
:::

<details data-group="auto-scaling-high-availability-nodes-new-node">
Expand Down Expand Up @@ -214,7 +214,7 @@ A task node is a node where the task cap is greater than 0. By default, all nod

While High Availability was designed to add nodes quickly, it was not designed to delete nodes quickly. The assumption was made when a node went offline; it was for a server restart. It was not designed to handle scale-in events from an auto-scaling technology automatically.

Auto-scaling technologies don't let you run scripts directly on virtual machines as they are being deleted. They will typically publish a message you can process. Because of that, you'll need to leverage the [Octopus Deploy REST API](/docs/api) to do the following:
Auto-scaling technologies don't let you run scripts directly on virtual machines as they are being deleted. They will typically publish a message you can process. Because of that, you'll need to leverage the [Octopus REST API](/docs/api) to do the following:

- Enable drain mode on the node. While that is enabled, it will prevent the node from picking up new tasks and will attempt to finish in-process tasks.
- Wait until either the node is marked offline or all tasks have finished processing.
Expand Down Expand Up @@ -431,7 +431,7 @@ Invoke-OctopusApi -endPoint "octopusservernodes/$($nodeInformation.Id)" -method

### Removing a UI-only node

Removing a UI-only node is no different than removing a web server from a web farm. The Octopus Deploy UI is stateless; your steps to remove a UI-only node are:
Removing a UI-only node is no different than removing a web server from a web farm. The Octopus UI is stateless; your steps to remove a UI-only node are:

- Remove the VM from the load balancer.
- Delete the VM.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ layout: src/layouts/Default.astro
pubDate: 2023-01-01
modDate: 2023-01-01
title: How High Availability Works
description: Understanding the inner workings on how high availability works in Octopus Deploy.
description: Understanding the inner workings on how high availability works in Octopus.
hideInThisSection: true
navOrder: 5
---
Expand All @@ -15,7 +15,7 @@ High Availability (HA) in Octopus enables you to run multiple Octopus Server nod

## Tasks

Deploying a release or triggering a runbook run places that work into a first-in, first-out (FIFO) task queue. You can view the task queue by navigating to the **TASKS** page on your Octopus Deploy instance. Deployments and runbook runs are not the only items placed into the task queue.
Deploying a release or triggering a runbook run places that work into a first-in, first-out (FIFO) task queue. You can view the task queue by navigating to the **TASKS** page on your Octopus instance. Deployments and runbook runs are not the only items placed into the task queue.

Some other examples of tasks include (but are not limited to):

Expand All @@ -33,7 +33,7 @@ Some other examples of tasks include (but are not limited to):
- Tentacle upgrade
- Update Calamari

By default, each Octopus Deploy node is configured to process five (5) tasks concurrently. That is known as the task cap. It is possible to [change the task cap on each node](/docs/support/increase-the-octopus-server-task-cap).
By default, each Octopus node is configured to process five (5) tasks concurrently. That is known as the task cap. It is possible to [change the task cap on each node](/docs/support/increase-the-octopus-server-task-cap).

While it is possible to increase the task cap on a single node to 50, 75, or even 100, you'll eventually run into the underlying host OS and .NET limits. A server can only open up so many network connections, transport so many files, and run so many concurrent threads. High Availability solves that problem by scaling the task cap horizontally. Each node will pull items from the task queue and process them.

Expand Down Expand Up @@ -71,7 +71,7 @@ The task queue is a first-in, first-out (FIFO) queue. The node does not conside

### Restarting the server during an active deployment

Restarting the Octopus Deploy Windows service or the underlying host OS will (eventually) cause any active tasks to fail. At first, the tasks will look like they are still in process. Once the node comes back online, it will cancel all active tasks. If the node doesn't come back online within an hour, one of the other nodes will cancel those tasks.
Restarting the Octopus Windows service or the underlying host OS will (eventually) cause any active tasks to fail. At first, the tasks will look like they are still in process. Once the node comes back online, it will cancel all active tasks. If the node doesn't come back online within an hour, one of the other nodes will cancel those tasks.

For planned outages, the recommendation is to enable drain mode. That will tell the node to finish up all active tasks and not pick up any new ones. That can be achieved by:

Expand All @@ -96,7 +96,7 @@ If you are hosting your virtual machines on a cloud provider, the cost differenc

## User Interface

Octopus Deploy provides two main interfaces for our users.
Octopus provides two main interfaces for our users.

- Web Portal
- REST API
Expand Down
14 changes: 7 additions & 7 deletions src/pages/docs/administration/high-availability/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,28 +32,28 @@ High Availability (HA) distributes load between multiple nodes. There are two k
1. Tasks (Deployments, runbook runs, health checks, package re-indexing, system integrity checks, etc.)
2. User Interface via the Web UI and REST API (Users, build server integrations, deployment target registrations, etc.)

Tasks are placed onto a first-in-first-out (FIFO) queue. By default, each Octopus Deploy node is configured to process five (5) tasks concurrently, which [can be updated in the UI](/docs/support/increase-the-octopus-server-task-cap). That is known as the task cap. Once the task cap is reached, the remaining tasks in the queue will wait until one of the other tasks is finished.
Tasks are placed onto a first-in-first-out (FIFO) queue. By default, each Octopus node is configured to process five (5) tasks concurrently, which [can be updated in the UI](/docs/support/increase-the-octopus-server-task-cap). That is known as the task cap. Once the task cap is reached, the remaining tasks in the queue will wait until one of the other tasks is finished.

Each Octopus Server node has a separate task cap. High Availability allows you to scale the task cap horizontally. If you have two (2) Octopus Server nodes each with a task cap of 10, you can process 20 concurrent tasks. Each node will pull items from the task queue and process them.

Learn more about [how High Availability processes tasks in the queue](/docs/administration/high-availability/how-high-availability-works) section.

## High Availability Limits

Octopus Deploy's High Availability functionality provides many benefits, but it has limits.
Octopus's High Availability functionality provides many benefits, but it has limits.

1. All Octopus Server nodes must run the same version of Octopus Deploy. Upgrading to a newer version of Octopus Deploy will require an outage as you upgrade all nodes.
1. You cannot specify the node a deployment or runbook run to execute on. Octopus Deploy uses a FIFO queue, nodes will pick up any pending tasks.
1. If a deployment or runbook run fails, it fails. Octopus Deploy will not automatically attempt to re-run that failed deployment or runbook run on a different node. In our experience, changing nodes rarely has been the solution to a failed deployment or runbook run.
1. All Octopus Server nodes must run the same version of Octopus. Upgrading to a newer version of Octopus will require an outage as you upgrade all nodes.
1. You cannot specify the node a deployment or runbook run to execute on. Octopus uses a FIFO queue, nodes will pick up any pending tasks.
1. If a deployment or runbook run fails, it fails. Octopus will not automatically attempt to re-run that failed deployment or runbook run on a different node. In our experience, changing nodes rarely has been the solution to a failed deployment or runbook run.
1. All the Octopus Server nodes must connect to the same database.
1. Octopus Server nodes have no concept of a "read-only" connection to a database. All online nodes perform write operations to the database. Even if it is not processing tasks.
1. Octopus Server nodes are sensitive to latency to SQL Server and the file storage. The Octopus Server nodes, SQL Server, and file storage should all be located in the same data center or cloud region. The latency between availability zones within the same cloud region is acceptable. Latency between cloud regions or data centers is not.

Generally, these limits are encountered when our users attempt to use Octopus Deploy's High Availability functionality for disaster recovery in a hot/hot configuration. A hot/hot configuration between two or more data centers or cloud regions is not supported nor recommended. Please see our white paper on recommendations for [high availability and disaster recovery](https://octopus.com/whitepapers/best-practice-for-self-hosted-octopus-deploy-ha-dr).
Generally, these limits are encountered when our users attempt to use Octopus's High Availability functionality for disaster recovery in a hot/hot configuration. A hot/hot configuration between two or more data centers or cloud regions is not supported nor recommended. Please see our white paper on recommendations for [high availability and disaster recovery](https://octopus.com/whitepapers/best-practice-for-self-hosted-octopus-deploy-ha-dr).

## Licensing

Each Octopus Deploy SQL Server database is a unique **Instance**. Nodes are the Octopus Server service that connects to the database. High Availability occurs when two or more nodes connect to the same Octopus Deploy database. An HA Cluster refers to all components, the load balancer, nodes, database, and shared storage.
Each Octopus SQL Server database is a unique **Instance**. Nodes are the Octopus Server service that connects to the database. High Availability occurs when two or more nodes connect to the same Octopus database. An HA Cluster refers to all components, the load balancer, nodes, database, and shared storage.

For self-hosted customers, High Availability is available for the following license types:

Expand Down
Loading