Skip to main content

Create an Orchestration service

Create an Orchestration service to schedule, run, and monitor your data workflows with Apache Airflow in your workspace. The Setup Orchestration service form has five screens: Basic Information, Compute, Service Configuration, Advanced, and Review & Create.

Prerequisites​

  • A workspace whose Status is Connected. See Create a workspace.
  • A storage mounted on the workspace with the Airflow - JupyterHub - Spark Service category. See Manage workspace storage.
  • A PostgreSQL database and a Redis database that the workspace can reach. You can use databases you created in FPT Database Engine or your own databases.
  • To read DAGs from Git, the URL, branch, and path of the repository.
  • For single sign-on (SSO), the details of your FPT ID, Google, or Keycloak provider.
  • For a secret backend, the details of your FPT Key Vault or Azure Key Vault. See Configure secret backends.
  • To use a custom domain, a certificate imported on the Certificate tab of the workspace. See Manage certificates.

Open the create form​

  1. Select Data platform → Workspace management, then select your workspace.
  2. On the Overview tab, select Create.
  3. In the Create service dialog, select Orchestration, then select Create service.

Create service dialog with the Category filter and the service cards, including the Orchestration card

In a workspace with no services yet, the Overview tab shows Create first service instead. Select the Orchestration card there to open the form directly.

The Setup Orchestration service form opens on the Basic Information screen. On each screen, select Next Step to go on, or Back to return to the previous screen.

Enter basic information​

  1. Enter a Name.
  2. Enter a Description (optional).
  3. Select a Size.
  4. Select a Version.
  5. Select Next Step.

Basic Information screen of the Setup Orchestration service form with the Size list open on Small, Dev, Medium, and Minimum-Internal

FieldDescription
NameRequired. The service name. 1 to 30 characters. Letters, numbers, and hyphens (-).
DescriptionOptional. A description of the service.
SizeRequired. The size of the service, chosen by the number of DAGs that run at the same time. See the sizes in the table below.
VersionRequired. The Orchestration version.

If the name breaks the rule, the form shows "Name has invalid characters" or "Name must be at most 30 characters long".

Select Size before Version. When you change Size, the form clears Version and shows "Version is required".

The Size list shows the parts of each size.

SizePartsRecommended number of DAGs running at the same time
Small4 Workers, 2 Scheduler, 1 Triggerer, 1 WebUIAbout 40 to 50
Dev2 Workers, 2 Scheduler, 1 Triggerer, 1 WebUIAbout 20 to 25
Medium4 Workers, 3 Scheduler, 1 Triggerer, 1 WebUIAbout 70 to 80
Minimum-Internal2 Workers, 1 Scheduler, 1 Triggerer, 1 WebUI, 1 Redis, 1 Postgres

Configure compute​

  1. Under Node, select a Storage Policy.
  2. Select Enable worker auto scaling if you need it, then enter Max node.
  3. Select Next Step.

Compute screen of the Setup Orchestration service form with Premium-SSD as Storage Policy, Enable worker auto scaling selected, and the Max node field

FieldDescription
Storage PolicyRequired. The storage policy of the nodes.
Enable worker auto scalingOptional. Scales up the Airflow workers automatically. Default: cleared.
Max nodeRequired when you select Enable worker auto scaling. The largest number of worker nodes that auto scaling can reach. At most 10, and at least the number of workers in the Size plus 1, for example 3 with Dev and 5 with Small.

An empty Max node shows "Max nodes is required". A value above 10 shows "Max nodes must be at most 10". A value below the minimum shows, for example with Dev, "Max nodes must be at least 3".

Configure storage and the DAG source​

On the Service Configuration screen, choose the storage that the service mounts and where Airflow reads your DAG files.

  1. Under Mount S3 storage, select the Storage Name.
  2. Check the S3 workspace path, and change it if you need to.
  3. Under DAGs, select the Type: S3 or GIT.
  4. With GIT, enter the Repository URL, select the Branch, and enter the Path.
  5. With GIT, select Test connection.
  6. Select Next Step.

Service Configuration screen with the Storage Name and S3 workspace path fields, S3 selected as DAGs Type with the fixed dags path, and the fixed Requirements paths

Service Configuration screen with GIT selected as DAGs Type, the Repository URL, Branch, and Path fields, and the Test connection button

FieldDescription
Storage NameRequired. The storage that the service mounts as S3 storage. The list shows the storage of the workspace, or "No options" when the workspace has none. Use a storage with the Airflow - JupyterHub - Spark Service category. See Manage workspace storage.
S3 workspace pathA path in the storage. Start it with a slash (/) and do not end it with one. Default: /.
Type (under DAGs)Required. Where Airflow reads the DAG files. S3 reads them from the S3 storage. GIT reads them from a Git repository.
Path (with S3)The folder of DAG files in the storage. Fixed to dags.
Repository URLRequired with GIT. The address of the repository that stores the DAG files.
BranchRequired with GIT. The branch that holds the folder of DAG files.
Path (with GIT)Required with GIT. The path to the folder of DAG files.

The screen also shows the Requirements section, with Path requirements and File requirements.txt, and the Plugins section, with Path plugins. These are fixed paths in the storage, and you cannot change them.

Configure advanced settings​

On the Advanced screen, connect the database and Redis of the service. Then set up sign-in, a secret backend, and a custom domain if you need them.

The Minimum-Internal size includes its own Redis and Postgres.

  1. Connect the Database.
  2. Connect Redis.
  3. Set up Single sign-on if you need it. Without it, Airflow uses basic authentication.
  4. Set up Secret backends if your DAGs read connections and variables from FPT Key Vault or Azure Key Vault.
  5. Set up a Custom domain if you need one. If you do not, make sure Custom Domain is cleared.
  6. Select Next Step.

Database​

Orchestration connects to a PostgreSQL database. Use a database you created in FPT Database Engine or your own database.

  1. Select the database Type.
  2. Select From FPT Database Engine and choose the database in Select database, or select Manual configuration.
  3. Enter or check the connection details: Host name, Port, Database, Username, and Password.
  4. Select Test connection to check the connection from the workspace to the database.

Database section with Type set to PostgreSQL, From FPT Database Engine selected, the Select database list, the connection fields, and the Test connection button

FieldDescription
TypeRequired. PostgreSQL.
From FPT Database Engine or Manual configurationRequired. From FPT Database Engine uses a database you created in FPT Database Engine. Manual configuration takes the connection details of your own database.
Select databaseRequired with From FPT Database Engine. The FPT Database Engine database to use.
Host nameRequired. The host name or IP address of the PostgreSQL server.
PortRequired. The port of the PostgreSQL server, for example 5432.
DatabaseRequired. The name of the database.
UsernameRequired. The user that connects to the database.
PasswordRequired. The password of that user.

Redis​

Orchestration also connects to Redis. Use a Redis database you created in FPT Database Engine or your own.

  1. Select From FPT Database Engine and choose the database in Select database, or select Manual configuration.
  2. Enter or check the connection details: Host, Port, Username, and Password.
  3. Select the Redis Database Name.
  4. Select Test connection to check the connection from the workspace to Redis.

Redis section with From FPT Database Engine selected, the Select database list, the Host, Port, Username, Password, and Redis Database Name fields, and the Test connection button

FieldDescription
From FPT Database Engine or Manual configurationRequired. From FPT Database Engine uses a Redis database you created in FPT Database Engine. Manual configuration takes the connection details of your own Redis.
Select databaseRequired with From FPT Database Engine. The FPT Database Engine database to use.
HostRequired. The host name or IP address of the Redis server.
PortRequired. The port of the Redis server, for example 6379.
UsernameRequired. The user that connects to Redis.
PasswordRequired. The password of that user.
Redis Database NameRequired. The logical database of Redis to use.

Single sign-on​

Without single sign-on (SSO), Airflow uses basic authentication. Turn on SSO to sign in to Airflow through FPT ID, Google, or Keycloak.

  1. Make sure Single Sign On is selected.
  2. Under Identity provider, select a Provider: FPT ID, Google, or Keycloak.
  3. Fill in the fields of your provider and the Admin user fields, as described in the tables below.

Email, and Username for FPT ID and Keycloak, are under Admin user. The other fields are under Identity provider.

With FPT ID, enter the admin user only.

FieldDescription
UsernameRequired. The username of the admin user.
EmailRequired. Your FPT email address.

Single Sign On section with FPT ID selected as Provider and the Username and Email fields under Admin user

With Google, enter the Google client and the email of the admin user.

FieldDescription
Client IDRequired. The ID that authenticates the client with Google.
Client SecretRequired. The secret that authenticates the client with Google.
EmailRequired. Your email address.

Single Sign On section with Google selected as Provider, the Client ID and Client Secret fields, and the Email field under Admin user

With Keycloak, enter the details of your Keycloak server and the admin user.

FieldDescription
Auth Provider nameRequired. The name of the provider.
RealmRequired. The Keycloak realm, the space where users, groups, roles, clients, and other objects are managed and secured on their own.
Auth Server URLRequired. The base URL of the Keycloak server, which clients use to authenticate. End it with a slash (/).
Client IDRequired. The ID that authenticates the client with Keycloak.
Client SecretRequired. The secret that authenticates the client with Keycloak.
UsernameRequired. The username in Keycloak.
EmailRequired. The email address in Keycloak.

Single Sign On section with Keycloak selected as Provider, the Auth Provider name, Realm, Auth Server URL, Client ID, and Client Secret fields, and the Username and Email fields under Admin user

Secret backends​

With a secret backend, Airflow reads connections and variables from FPT Key Vault or Azure Key Vault. You can also set it up or change it later, on the Advanced tab of the service.

  1. Make sure Secret backends is selected.
  2. Under Configuration, select the Provider.
  3. Fill in the fields of your provider. They are the same as in the Update secrets backends panel of the service. See Configure secret backends.
  4. Select Test connection to check the connection to the secret backend.

Secret backends section with FPT Key Vault selected as Provider, the Mount point, Connection path, Variable path, URL, Auth type, and Token fields, and the Test connection button

With FPT Key Vault, the token needs read access to the paths of your connections and variables. See Give the token read access in Vault.

Custom domain​

A custom domain lets you reach the service at your own domain name. The fields depend on the Type of the workspace: a Public workspace always serves the service over HTTPS, and a Private workspace lets you choose HTTPS or HTTP.

  1. Make sure Custom Domain is selected.
  2. Fill in the fields for your workspace type, as described in the tables below.
  3. Select Validate to check that the certificate is valid for the domain.

Manage certificate, next to Certificate name, opens certificate management, where you can import a certificate that is not in the list yet. See Manage certificates.

In a Public workspace, the form has no TLS/SSL certificate option because HTTPS is always on.

FieldDescription
Custom Domain (field)Required. The domain name of the service, for example abc.local or jupyter.example.com.
Certificate nameRequired. A certificate imported on the Certificate tab of the workspace.

Custom Domain section in a Public workspace with the Custom Domain and Certificate name fields and the Manage certificate and Validate buttons

In a Private workspace, you choose HTTPS or HTTP with TLS/SSL certificate.

FieldDescription
Custom Domain (field)Required. The domain name of the service.
TLS/SSL certificateOptional. Select it to serve the service over HTTPS. When it is cleared, the service runs over HTTP and needs no certificate.
Certificate nameRequired with TLS/SSL certificate. A certificate imported on the Certificate tab of the workspace.

Custom Domain section in a Private workspace with the Custom Domain field, the TLS/SSL certificate option, the Certificate name field, and the Manage certificate and Validate buttons

Review and create​

  1. Check the settings on the Review & Create screen.
  2. Select Create.

The service is ready when its Status is Healthy. This takes about 10 minutes.

Next steps​