Create an environment
When you create a project, you'll need to create at least one environment. This page describes how to create an environment in more detail.
Watch a video
How to create a new environment
There are several ways you can create a new environment, if you've not created one as part of creating the project. For example, you can do it from the top-level kebab menu:
You can also create an environment from the main project screen:
Name and branch
You now need to give your environment a name, and select (or create) the branch it is associated with:
You can enter any suitable name for your environment. Examples could be: production, testing, develop, staging, prototype, and so on. Any name that suits the use case can be used.
An environment is always associated with a branch. You can select a branch that already exists (such as when you have connected your project to an existing Git repository), but you are also free to create any new branches you need - simply click
+ New branch from the branch dropdown, in the
Environment settings dialog.
You now choose the Kafka broker you use with Quix.
There are three broker options:
- Quix broker
- Managed Kafka
Each of these is described briefly in the following sections.
The simplest and most convenient choice is to use Quix-managed Kafka. No installation of Kafka is required, and configuration can be done through the UI if you need to change the sensible default values. Very little knowledge of Kafka is expected, beyond basic familiarity with concepts such as topics.
There is a small charge for storage for messages persisted in a topic:
Quix has integrations with common Kafka hosting providers. There are three options here:
Select your managed broker option, and then follow the detailed setup guide provided to connect Quix to the broker.
If you want to install and manage your own Kafka installation, you can do this too, as long as the Kafka Cluster is available on the Internet. You'll need to do more configuration, and be very familiar with details of Kafka hosting and configuration. Selecting this option presents you with a setup guide:
You also have the option to test your connection with the Kafka server before continuing.
Data and streaming services
The last step in creating an environment is to choose your data and streaming services option.
There are two options here:
- High performance
These options determine the following:
- The amount of storage available to persisted topics
- The level of resources (CPU, RAM) allocated to streaming services
Persisted storage is when you enable persistence on a topic:
Persisted storage is not the same as topic storage. Topic storage is charged separately, and relates to storage allocated to messages retained in a Kafka topic, for the Quix broker option.
Services that experience improved performance when selecting the "High performance" option include the following:
- GitService - this is the service that synchronizes your Quix environment with the project's Git repository.
- Replay Service - enables replay of persisted data into a topic.
- Streaming Reader - service that enables a client to subscribe to a Quix topic.
- Streaming Writer - service that enables a client to publish to a Quix topic.
- Query API - query data persisted in the Quix database.
Generally, if you notice sluggish performance in one of these services, it may mean for the volumes and frequency of data you are processing, you might need the High performance option.
While you can't directly upgrade a standard environment to a high performance environment, you can create a new environment that uses the high performance option. You can create this environment using any branch (or even a new branch) suitable for your use case. For example, if you had a
staging branch that was currently a standard environment, and you needed to upgrade it to a high performance environment, you could delete the environment, and create a new environment using the high performance option, and link it to the
Standard is designed for proof-of-concept, experimentation, and testing environments.
High performance is designed for production environments.