Altinity.Cloud provides the best experience in managing ClickHouse. Create new clusters with the version of ClickHouse, set your node configurations, and get right to work.
This is the multi-page printable view of this section. Click here to print.
Altinity.Cloud
- 1: Altinity.Cloud 101
- 2: Quick Start Guide
- 2.1: Altinity Cloud Manager Introduction
- 2.2: Account Creation and Login
- 2.3: How to Run a SQL Query
- 2.4: Cluster Launch Wizard
- 2.5: Wizard Settings Detail
- 2.6: Creating Tables and Adding Data
- 2.7: ClickHouse Ubuntu Terminal Remote Client
- 2.8: ClickHouse Python Client
- 2.9: ClickHouse Macintosh (Monterey) Client
- 3: Altinity.Cloud Demo Cluster
- 4: General User Guide
- 4.1: How to Create an Account
- 4.2: How to Login
- 4.3: How to Logout
- 4.4: Account Settings
- 4.5: Billing
- 4.6: Clusters View
- 4.7: Clusters Reference
- 4.7.1: View Cluster Details
- 4.7.2: Cluster Actions
- 4.7.2.1: Upgrade Cluster
- 4.7.2.2: Rescale Cluster
- 4.7.2.3: Stop and Start a Cluster
- 4.7.2.4: Export Cluster Settings
- 4.7.2.5: Replicate a Cluster
- 4.7.2.6: Destroy Cluster
- 4.7.3: Cluster Settings
- 4.7.4: Configure Cluster
- 4.7.4.1: How to Configure Cluster Settings
- 4.7.4.2: How to Configure Cluster Profiles
- 4.7.4.3: How to Configure Cluster Users
- 4.7.5: Launch New Cluster
- 4.7.6: Cluster Alerts
- 4.7.7: Cluster Health Check
- 4.7.8: Cluster Monitoring
- 4.7.9: Cluster Logs
- 4.7.10: Cluster Explore Guide
- 4.7.10.1: Query Tool
- 4.7.10.2: Schema View
- 4.7.10.3: Processes
- 4.8: Notifications
- 4.9: System Status
- 4.10: Uptime Schedule Settings
- 5: Administrator Guide
- 5.1: Access Control
- 5.1.1: Role-Based Access and Security Tiers
- 5.1.2: Account Management
- 5.1.3: Integrating Okta into the Altinity.Cloud login page
- 5.1.4: Altinity Access to ClickHouse
- 5.2: Altinity Backup Solutions
- 5.3: How to use Altinity Backup and the Restore Wizard
- 6: Connectivity
1 - Altinity.Cloud 101
8 May 2023 · Read time 5 min
Altinity.Cloud Introduction
Welcome to Altinity.Cloud. In this guide, we will be answering a few simple questions:
- What is Altinity.Cloud?
- What Can I Do with Altinity.Cloud?
- How is Altinity.Cloud organized?
- Where can I find out more?
What is Altinity.Cloud?
Altinity.Cloud is a fully managed ClickHouse services provider. Altinity.Cloud is the easiest way to set up a ClickHouse cluster with different configurations of shards and replicas. From one spot you can monitor performance, run queries, upload data from S3 or other cloud stores, and other essential operations.
Altinity Stable for ClickHouse
- Altinity Stable builds are production certified that include 3-years of technical support.
- This is a technical reference that provides details on Altinity.Cloud.
Altinity.Cloud Quick Start Guide
- This section is a crash course on how to create your own ClickHouse clusters with Altinity.Cloud.
Altinity.Cloud Connectivity Guide
- This section covers how to connect your existing services to Altinity.Cloud.
What Can I Do with Altinity.Cloud?
Altinity.Cloud lets you create, manage, and monitor ClickHouse clusters with a few simple clicks.
Figure 1 is a screenshot of the demo environment in the Altinity Cloud Manager user interface.
A. Cluster Creation
- Clusters can be created from scratch with Launch Cluster.
B. Clusters
-
Each cluster is associated with your Altinity.Cloud account is listed in either tile format, or as a shortlist. They’ll display a summary of their health and performance. By selecting a cluster, you can view the full details.
-
Clusters can be spun up and set with the number of replicas and shards, the specific version of ClickHouse that you want to run on them, and what kind of virtual machines power the nodes.
-
When your clusters are running you can connect to them with the ClickHouse client, or your favorite applications like Grafana, Kafka, Tableau, and more.
C. User and Environment Management
- Change to another environment.
- Manage environments and zookeepers.
- Update account settings.
Cluster Monitoring
The performance of each Cluster is monitored in real-time with the Altinity Cluster Monitoring system. Each cluster has 32 interactive graphs, which are metrics that are created by the Altinity Cloud Manager that are displayed by Grafana.
Figure 2 - Grafana monitoring graphs.
Available Metrics
Each cluster includes metrics displayed by Grafana as follows:
Column 1 | Column 2 | Column 3 |
---|---|---|
DNS and Distributed Connection Errors | Replication and ZooKeeper Exceptions | Delayed/Rejected/Pending Inserts |
Select Queries | Read Bytes | Memory for Queries |
Insert Queries | Bytes Inserted | Rows Inserted |
Replication Queue Jobs | Max Replica Delay | Zookeeper Transactions |
Merges | Merged Rows | Merged Uncompressed Bytes |
Active Parts | Detached parts | Max Part count for Partition |
clickhouse-server Process Memory | Primary Keys Memory | Dictionary Memory |
Disk Space Free | Clickhouse Data size on Disk | Connections |
Background Tasks | Mutations | Marks Cache Hit Rate |
CPU Time per second | CPU Time total | Load Average 1m |
Network / Disk CPU Time per second | Monitoring Agent |
Figure 5 - All of the available Grafana monitoring graphs for a cluster.
As shown in Figure 5, here are some of the metrics with descriptions.
1. DNS and Distributed Connection Errors
- Displays the rate of any connection issues.
2. Select Queries
- The number of select queries submitted to the cluster.
26. Zookeeper Transactions
- The communications between the zookeeper nodes.
19. ClickHouse Data Size on Disk
- The total amount of data the ClickHouse database is using.
How is Altinity.Cloud organized?
Organization
- Organizations have one or more environments that service your company.
- Altinity.Cloud starts at the Organization level - that’s your company. When you and members of your team log into Altinity.Cloud, they’ll start here. Depending on their access level, they can then access the different systems within the organization.
Environments
- Environments contain different clusters in a set to control access and resources.
- The next level down from there is the Environments.
Clusters
- Clusters are sets of replicas that work together to replicate data and improve performance.
- Each organization has at least one Environment, and these are used to allow users access to one or more Clusters.
Nodes
- Nodes are individual virtual machines or containers that run ClickHouse.
- Clusters consist of one or more Nodes - individual containers that run the ClickHouse databases.
Shards
- Shards are groups of nodes that work together to improve performance, and reliability, and to share data.
Replicas
- Replicas are groups of shards that mirror data and performance so when one replica goes down, they can keep going.
- Shards can then be set as replicas, where groups of nodes are copied. If one replica goes down, the other replicas can keep running and copy their synced data when the replica is restored or when a new replica is added.
Altinity.Cloud Access
Altinity.Cloud keeps your users organized in the following roles:
Role | Environment | Cluster | |
---|---|---|---|
orgadmin | These users can create environments and clusters, and assign users in their organization to them. | ||
envadmin | These users have control over the environments they are assigned to by the orgadmin. They can create clusters and control clusters within these environments. | ||
envuser | These users can access the clusters they are specifically assigned to within specific environments. | ||
billing | This user role can access billing the page only, view invoices, and update payment details. |
For details, see the Altinity documentation:
Where can I find out more?
Altinity provides the following resources to our customers and the Open Source community.
Altinity Documentation Site
- Official documentation on using Altinity.Cloud, Altinity Stable, and related products.
The Altinity Knowledge Base
- An Open Source and community-driven place to learn about ClickHouse configurations and answers to questions.
The Altinity Web Page
- Where you can learn about other resources, meetups, training, conferences, and more.
The Altinity Community Slack Channel
- To work with Altinity engineers and other ClickHouse users to get answers to your problems and share your solutions.
The ClickHouse Sub-Reddit
- Where the community can discuss what’s going on with ClickHouse and find answers.
2 - Quick Start Guide
Welcome to Altinity.Cloud! Altinity.Cloud is the fastest, easiest way to set up, administer and use ClickHouse. Your ClickHouse is fully managed so you can focus on your work.
If this is your first time using Altinity.Cloud, this quick start guide will give you the minimum steps to become familiar with the system. When you’re ready to dig deeper and use the full power of ClickHouse in your Altinity.Cloud environment, check out our Administrator and Developer Guides for in depth knowledge and best practices.
2.1 - Altinity Cloud Manager Introduction
26 January 2023 · Read time 3 min
Overview - Altinity Cloud Manager
This section introduces the Altinity Cloud Manager for managing ClickHouse cluster environments.
The Altinity Cloud Manager (ACM) is where your existing clusters are shown.
https://acm.altinity.cloud/clusters/
Points of interest marked by the red pins include:
- The your.environment name is what you signed up with, otherwise a cluster name appears hear in this menu.
- The John Doe is an example of your logged-in name.
- The left pane
collapses or expands
the text labels beside the icons.
- The Launch Cluster text tag refers to the call-to-action
LAUNCH CLUSTER button.
Figure 1 – The Altinity Cloud Manager (ACM) home screen with no clusters showing.
Looking at the Demo
To switch to the demo environment:
- Use the environment menu to switch to demo to see the clusters.
Figure 2 – The environment menu, where the demo name is selected.
The demo environment has several example clusters:
- posthog
- clickhouse101
- meetup
- github
Panel View
To see the detail for the cluster named clickhouse101:
- In the cluster named clickhouse101, hover over pane, the outline turns blue, then click .
Figure 3 – The demo environment showing several cluster panels.
List View
The list view provides a spreadsheet table view of your clusters.
- Select the
List View icon.
Figure 4 – The list view of all the demo clusters.
Cluster Dashboard view
Selecting a cluster name from a panel view or list view displays the settings that were set by the Cluster Launch Wizard.
Figure 5 – Detailed settings view of the cluster clickhouse101.
Explore View
While viewing your cluster, selecting the Explore button displays the Query screen. This is where SQL queries are run on your cluster. Note the additional tabs for Schema, Workload and DBA Tools.
Figure 6 – The cluster Query tab screen. This is where SQL queries are run.
Grafana Monitoring View
From your cluster dashboard view, selecting the Monitoring
View in Grafana link displays the graphs shown in the following screenshot.
Figure 7 – The Grafana graphs for the K8S Namespace demo, for the cluster named clickhouse101.
A Wizard-Created Cluster
When you create a new cluster using the LAUNCH CLUSTER Wizard, the example-environment-name appears in your Altinity Cloud Manager (ACM).
Points of interest include:
example-environment - Menu name changes to the selected environment (aka namespace or domain).
2/2 nodes online - Green to indicate running status. Action > Stop to take offline.
0/2 nodes online - Red shows nodes are not running. Action > Resume to start.
stopped - Cluster / node is not running. Action > Resume to start.
6/6 checks passed - Shows green when all 6 checks have completed successfully.
0/6 checks passed - Shows red until all checks have passed. Action > Resume to start.
Shield green - TLS (Transport Layer Security) is enabled.
Actions - Mouse hover shows this light blue shade.
Blue outline - In cluster panel view, moving your mouse cursor over a cluster changes the grey outline to blue; click to view.
Panel view icon - View clusters in panel format.
List view icon - View cluster in a list format.
Address of all clusters -
https://acm.altinity.cloud/clusters/
Address of a specific cluster -
https://acm.altinity.cloud/cluster/2887
Figure 8 – Points of interest from the newly created example-cluster.
2.2 - Account Creation and Login
26 January 2023 · Read time 2 min
Free Trial Account Creation
To start your Altinity.Cloud journey, the first thing you need is an account. New users can sign up for a 14-day Trial account from the following link:
For the free trial to the Altinity.Cloud Anywhere product, which is an on-premises version that you can run in your own Kubernetes environment, see:
Requested information as shown in the following screenshot includes:
- First Name and Last Name
- Email (if you provide a Google business email account (this does not include person @Gmail emails), you can login with Auth0 login)
- Company name
- Country
- Cloud Provider that you use (Examples: Amazon, Google)
- Your managed environment name (eg: my-staging)
Email Validation
When you SUBMIT the Free 14-day Trial form, you will immediately receive an email from Altinity with a validation link that you click to confirm.
First Time Login
Once you validate your email, your request for the Altinity.Cloud free trial will be processed for approval.
The Altinity.Cloud (support@altinity.com
) team will provide the following login information.
The following example screenshot is an email that you will receive from Altinity.Cloud notifying you that your 14-day Free Trial to Altinity.Cloud has been approved.
-
Your-altinity is an example of the environment name you supplied Altinity. (NOTE: If your name choice already exists in our system, we will rename it.)
-
The URL is customized to you and is used once only for the initial login.
-
Here refers to a Calendar link
https://calendly.com/trial-support-team/altinity-cloud-trial-check
-
Quick Start Guide
https://docs.altinity.com/altinitycloud/quickstartguide/
-
Series of videos
https://www.youtube.com/hashtag/altinitycloud
-
Support email is
support@altinity.com
Creating a new password
Clicking the link (item 2) shows the Onboarding window that
prompts you to create a new password.
Logging into the Altinity Cloud Manager
Fill in your Altinity Cloud Manager credentials screen and select SIGN IN:
- ACM Login
https://acm.altinity.cloud/login - Login Email
(example:johnDoe@outlook.com
) - Password
(example:S0me@c0pl3x_password
- •••••••••••••••••••• dots show as you type)
Auth0 login
AUTH0 is used to login if you have a Google Gmail account that Altinity.Cloud supports for trusted authentication. Note that in order for this to work, you must have used your Gmail address to register for the Altinity.Cloud Free Trial.
To use Auth0 to login:
- Select the Auth0 link from the bottom of the ACM login window.
- Select Continue with Google.
- If you are not already logged into a Google domain, the usual Google login screen appears. Select the same Google domain email address you registered with Altinity.Cloud to complete the login. NOTE: This does not includ
Privacy Policy
See the Privacy Policy at:
2.3 - How to Run a SQL Query
26 January 2023 · Read time 3 min
Overview - Using the cluster Explore > Query
This example shows how to navigate from the cluster home page and how to use Explore > Query to run a query a ClickHouse database on the included demo cluster called github.
The following screenshot shows the step-by-step sequence of events, starting from your cluster home page (A), then selecting the ClickHouse database repository demo github cluster against which you will run the example SQL query in the Explore > Query screen (B).
To run a SQL query from the demo cluster named github:
- Enter the URL into a browser: https://acm.altinity.cloud/clusters/
- From the domain menu, select demo.
- Within the cluster called github, select EXPLORE. Note that the URL changes to: https://acm.altinity.cloud/cluster/337/explore (see Figure 2 B-1) . Note that the menu title shows that CLUSTER:GITHUB is selected (see Figure 2 B-3).
- Under the Query History, paste the text of the example SQL query.
- Select EXECUTE to run the query.
- Optionally, select and copy the results of the query.
Figure 1 – The home page showing all clusters.
Figure 2 – The Explore of the demo > github cluster viewing the Query tab.
SQL Query script
The following SQL script generates a 3-column report from a github database from 2019 to 2023 that the collates the number of pull requests (PRs) made by unique contributors.
SELECT toStartOfYear(merged_at) m, sum(merged) prs, uniq(creator_user_login) contributors
FROM github_events
WHERE merged_at>='2019-01-01'
AND event_type = 'PullRequestEvent'
AND repo_name in ('ClickHouse/ClickHouse', 'yandex/ClickHouse')
GROUP BY m
ORDER BY m
Code snippet 1 – The input, an example SQL query script to get 4 years of unique pull request contributor totals.
Query explanation
The SQL query visualization shows the Input (green) data sources and Output (red) 3 columns M, PRs and Contributors.
Figure 3 – The example SQL query script and visualization.
First select the start of the year for the merged_at column (line 1), the sum of the merged column (m), and the unique values in the creator_user_login column from the github_events table (line 2).
Include only the rows where the merged_at column is on or after January 1, 2019 (line 3) and the event_type column is ‘PullRequestEvent’ (line 4) and the repo_name column is either ‘ClickHouse/ClickHouse’ or ‘yandex/ClickHouse’ (line 5).
Group the results (line 6) by the start of the year for the merged_at column (from line 3)
Lastly, order the results (line 7) by the start of the year for the merged_at column.
SQL Query results
The results of the query appear below the EXECUTE button, listing 3 columns titled m (year), PRs and Contributors.
┌──────────m─┬──prs─┬─contributors─┐
│ 2019-01-01 │ 2278 │ 232 │
│ 2020-01-01 │ 6000 │ 300 │
│ 2021-01-01 │ 7766 │ 366 │
│ 2022-01-01 │ 5639 │ 392 │
│ 2023-01-01 │ 157 │ 41 │
└────────────┴──────┴──────────────┘
Code snippet 2 – The output, 3 columns of year (m), PRs and contributors showing 4 years of unique pull request contributor totals.
2.4 - Cluster Launch Wizard
26 January 2023 · Read time 5 min
Overview - Cluster Launch Wizard (summary)
This section covers the Altinity Cloud Manager ClickHouse cluster creation feature called the Cluster Launch Wizard. This getting started guide walks you through the steps to create a new cluster from scratch.
- The Detailed reference link takes you to section on the Wizard Settings Detail page that explains each setting.
- Where indicated, additional settings and resources can be obtained upon request from Altinity Technical Support at: https://altinity.com/contact/
The following wizard screens are covered on this page:
- ClickHouse Setup | Detailed reference
- Resources Configuration | Detailed reference
- High Availability Configuration | Detailed reference
- Connection Configuration | Detailed reference
- Uptime Schedule | Detailed reference
- Review & Launch | Detailed reference
The following illustration shows a summary of the various screens available in the Cluster Wizard.
Figure 1 – Each of the Restore Wizard screens and the available settings.
Launch Cluster
The Altinity Cloud Manager (ACM) is where your existing clusters are shown.
https://acm.altinity.cloud/clusters/
If this is the first time you have seen this page, or you have deleted all of your clusters, this page will be blank and show the text string:
"You don’t have any clusters running at this moment."
Points of interest marked by the red pins include:
- The your.environment name is what you signed up with. Note that a read-only demo environment is included.
- The John Doe is an example of your logged-in name.
- The left pane
collapses or expands
the text labels beside the icons.
- The Launch Cluster text tag refers to the call-to-action
LAUNCH CLUSTER button.
To begin the creation of a new ClickHouse cluster:
- Select the
LAUNCH CLUSTER button.
Figure 2 – The Altinity Cloud Manager (ACM) home page, selecting the LAUNCH CLUSTER button.
- Starting with the ClickHouse Setup screen, fill in the information required by each wizard screen clicking NEXT to navigate.
Figure 3 – Each of the 6 Cluster Launch Wizard screens and the available settings.
1. ClickHouse Setup
After selecting the LAUNCH CLUSTER button, the first wizard setup screen appears ClickHouse Setup.
Enter the following then click NEXT:
- Cluster Name - example-cluster
- ClickHouse Version - ALTINITY BUILDS 22.3.12 Altinity Stable Build
- ClickHouse User Name = admin
- ClickHouse User Password = riDkod-4pycfa-wustof (example)
- NOTE: Click
to view
the password then copy and paste it to the Confirm Password field.
- NOTE: Click
Figure 4 – The wizard screen 1 of 6 ClickHouse Setup.
2. Resources Configuration
The second screen is Resources Configuration, where you choose the CPU and storage settings. If you need more resources that what is displayed, contact Altinity Support.
Enter the following then click NEXT:
- Node Type - m5.large (CPU x2, RAM 7 GB)
- Node Storage (GB) - 100
- Number of Volumes - 1
- Volume Type - gp2-encrypted
- Number of Shards - 1
Figure 5 – The wizard screen 2 of 6 Resources Configuration.
3. High Availability Configuration
This screen covers server redundancy and failover.
Enter the following then click NEXT:
- Number of Replicas - 2
- Zookeeper Configuration - Dedicated
- Zookeeper Node Type - default
- Enable Backups - True (checked)
- Backup Schedule - Daily (dimmed)
- Number of Backups to keep - 7 (dimmed)
Figure 6 – The wizard screen 3 of 6 High Availability Configuration.
4. Connection Configuration
This screen covers communication details such as port settings and endpoint information.
Enter the following then click NEXT:
- Endpoint - example-cluster.customer-domain.altinity.cloud
- Use TLS - True (checked)
- Load Balancer Type - Altinity Edge Ingress
- Protocols - Binary Protocol (port: 9440) True (checked)
- Protocols - HTTP Protocol (port: 8443) True (checked)
- Datadog integration (disabled) - Send Logs (dimmed) - Send Metrics (dimmed)
- IP restrictions - Enabled = False (unchecked)
Figure 7 – The wizard screen 4 of 6 Connection Configuration.
5. Uptime Schedule
This lets you choose the type of schedule for when the cluster is allowed run.
Set the Uptime Schedule so that the server never turns off, then click NEXT:
- Always On - True (selected, dark blue)
- Stop When Inactive - False (not selected)
- On Schedule - False (not selected)
Figure 8 – The wizard screen 5 of 6 Uptime Schedule.
6. Review & Launch
There is nothing to add or change on this review screen.
This is last chance where you can use the BACK button and change previously entered settings, then return to this screen. If there are no changes, select the LAUNCH button to save the settings and start the cluster provisioning process.
The following information is presented:
- From screen 1 - Cluster name - example-cluster
- From screen 2 - Shards - 1
- From screen 2 - Number of nodes - 2
- From screen 2 - CPU - m5.large
- From screen 2 - RAM - 14 GB
- From screen 2 - Storage = 200 GB
- From screen 2 - Estimated Cluster cost: $0.76/hr ($547.20/month)
Figure 9 – The last wizard screen 6 of 6 Review & Launch.
Cluster view after Wizard finishes
The example-cluster appears in your Altinity Cloud Manager (ACM). Any new cluster will appear as another panel or another row in a table listing.
Points of interest include:
example-environment - Menu name changes to the selected environment (aka namespace or domain).
2/2 nodes online - Green to indicate running status. Action > Stop to take offline.
0/2 nodes online - Red shows nodes are not running. Action > Resume to start.
stopped - Cluster / node is not running. Action > Resume to start.
6/6 checks passed - Shows green when all 6 checks have completed successfully.
0/6 checks passed - Shows red until all checks have passed. Action > Resume to start.
Shield green - TLS (Transport Layer Security) is enabled.
Actions - Mouse hover shows this light blue shade.
Blue outline - In cluster panel view, moving your mouse cursor over a cluster changes the grey outline to blue; click to view.
Panel view icon - View clusters in panel format.
List view icon - View cluster in a list format.
Address of all clusters -
https://acm.altinity.cloud/clusters/
Address of a specific cluster -
https://acm.altinity.cloud/cluster/2887
Figure 10 – Points of interest from the newly created example-cluster.
2.5 - Wizard Settings Detail
26 January 2023 · Read time 11 min
Overview
Purpose
This section provides a detailed discussion of the settings that expands on the overview of the Cluster Launch Wizard.
See Also:
The following diagram is a snapshot view of the 6 wizard screens showing the settings that are discussed on this page:
Create a new ClickHouse cluster
- From the Altinity.Cloud Manager, create a new ClickHouse cluster by selecting the LAUNCH CLUSTER button.
ClickHouse Setup
These are ClickHouse-related settings. (Screen 1 of 6) Name | ClickHouse Version | ClickHouse User Name | ClickHouse User Password
- Fill in the 4 ClickHouse Setup fields.
- Select NEXT to advance to the next cluster wizard screen Resources Configuration.
- Or, select CANCEL to close the wizard without saving.
To see the full-sized ClickHouse Setup screen, see:
Cluster Launch Wizard ❯ ClickHouse Setup
Name
This is the DNS-compliant name of the cluster.
- Example: example-cluster
The Name of your cluster must follow DNS name restrictions as follows:
Allowed
- Name must start with a letter
- Lower case letters (a to z)
- Numbers (0 to 9)
- Hyphens, also named dash or minus character (-)
- 15 character limit
Disallowed
- Periods (.)
- Special characters ( > ’ , " ! # )
UI Text
- “Cluster name tag will be used in ClickHouse configuration and it may contain only lowercase letters [a-z], numbers [0-9] and hyphens [-] in between”
ClickHouse Version
This lets you choose which version of ClickHouse to use, from a list in the Altinity Builds category or any other ClickHouse Community Builds.
Altinity Builds
Altinity Stable Builds are tested, proven stable builds with 6-month test cycles. They are based on ClickHouse Long Term Support (LTS) releases and are supported for up to 3 years. These release numbers include the phrase Altinity Stable Build.
See also:
Example values: (Your system may be different.)
- 21.1.11 Altinity Stable Build
- 21.3.20 Altinity Stable Build
- 21.8.15 Altinity Stable Build
- 22.3.12 Altinity Stable Build
- Custom Version (Image Identifier)
Community Builds
This is a list of all available ClickHouse versions. Example values: (Your system may be different.)
- 21.3.20.1 Altinity Stable (community build)
- 21.8.15.7 Altinity Stable (community build)
- 21.11.11.1
- 22.3.12.19 Altinity Stable (community build)
- 22.6.8.35
- 22.8.10.29
- Custom Version (Image Identifier)
UI Text
- “ClickHouse Version will be the same across all Cluster nodes”
ClickHouse User Name
This is the Account name of the ClickHouse administrator. By default, this name is set to admin.
- Example: admin
UI Text
- “ClickHouse user will be created with the specified login”
ClickHouse User Password
- Passwords need to be at lease 12 characters.
- Too-short passwords produce an Error: Invalid ClickHouse user password.
- As you type past 12 characters, the red banner will go away.
- Click the Show password icon then copy and paste to the right Confirm Password field.
- Example: ThisI5Ac0Plexp4ssW0rd | Confirm Password •••••••••••••••••••••
UI Text
- This password will be assigned to the ClickHouse User The minimum password length is 12 characters. Consider adding digits capital letters and special symbols to make password more secure
Resources Configuration
Sets the CPU size, RAM/memory and storage settings. (Screen 2 of 6) Node Type | Node Storage (GB) | Number of Volumes | Volume Type | Number of shards
- Fill in the 5 Resources Configuration fields.
- Select NEXT to advance to the next cluster wizard screen High Availability Configuration.
- Or, select BACK to return to the previous cluster wizard screen ClickHouse Setup.
- Or, select CANCEL to close the wizard without saving.
To see the full-sized Resources Configuration screen, see:
Cluster Launch Wizard ❯ Resources Configuration
Node Type
CPU and RAM sizes for the node. The names in the drop-down menu will differ depending on which environment you are using. (E.g., between AWS and GCP.) Contact Altinity Technical Support if you need additional node types.
- Clusters can later be scaled up or down dynamically.
- Example: m5.large (CPU x2, RAM 7 GB)
More Information
Available sizes (set by your Cloud provider):
Example
- m5.large (CPU x2. RAM 7 GB)
- m5.xlarge (CPU x4. RAM 14 GB)
- m5.2xlarge (CPU x8. RAM 29 GB)
- m5.4xlarge (CPU x16. RAM 58 GB)
- m5.8xlarge (CPU x32. RAM 120 GB)
- c5.18xlarge (CPU x72. RAM 128.9 GB)
UI Text
- “Node Type will be the same across all ClickHouse hosts”
Node Storage
The size of each cluster node in GB (gigabytes).
- Each node has the same storage area.
- Example: 100 (GB)
UI Text
- “Each ClickHouse host will have specified amount of local volume storage”
Number of Volumes
Depending on the cloud provider you are using, creating more volumes may improve query performance.
UI Text
- “Network storage can be split to several volumes for a better query performance”
Volume Type
These are SSD block storage volumes provided by Amazone AWS, Google GCP, or other cloud providers.
The choices are:
- gp2-encrypted
- gp3-encrypted
UI Text
- “Defines volume claim storage class for each ClickHouse host”
Number of Shards
Shards group nodes that work together to share data and improve performance. Replicating shards is done to increase availability and speed up recovery if one shard goes down.
Where quotas are in place, the UI string “x / y (ie. 1 of 20) shards will be used”.
UI Text
- “Each shard will required X number of
- ClickHouse hosts where X is the number
- of replicas of this shard (X = 2)”
High Availability Configuration
These are redundancy and failover settings. (Screen 3 of 6) Number of Replicas | Zookeeper Configuration | Zookeeper Node Type | Enable Backups
- Fill in the 4 High Availability Configuration fields.
- Select NEXT to advance to the next cluster wizard screen Connection Configuration.
- Or, select BACK to return to the previous cluster wizard screen Resources Configuration.
- Or, select CANCEL to close the wizard without saving.
UI Text
- “Please contact Altinity Support if you need more resources”
To see the full-sized High Availability Configuration screen, see:
Cluster Launch Wizard ❯ High Availability Configuration
Number of Replicas
- 1 | 2 | 3
- Number of Replicas for each Cluster Shard
- Replicas: x / y Replicas will be used (appears if Altinity Support has set usage quotas)
UI Text
- “Number of Replicas for each Cluster shard”
Quotas set by Altinity
If bar charts appears, this means Altinity Support has set quotas for your domain.
- CPU: x / y vCPUs will be used
- Storage: x / y GB will be used
Zookeeper Configuration
- Example: Dedicated
UI Text
- “You can pick a shared Zookeeper cluster, Launch a dedicated one or do not use Zookeeper at all.”
Zookeeper Node Type
- Default
Enable Backups
Whether or not backups occur.
- Example: True (checked)
Backup Schedule
This is the frequency that data backups happen.
- Example: Daily
UI Text
- [ none ]
Number of Backups to keep
- Example: 7
UI Text
- [ none ]
Connection Configuration
Used to set the communications protocols. (Screen 4 of 6) Endpoint | Use TLS | Load Balancer Type | Protocols | Datadog integration | IP restrictions
- Fill in the 5 Connection Configuration fields.
- Select NEXT to advance to the next cluster wizard screen Uptime Schedule.
- Or, select BACK to return to the previous cluster wizard screen High Availability Configuration.
- Or, select CANCEL to close the wizard without saving.
UI Text
- “Please contact Altinity Support if you need more resources.”
To see the full-sized Connection Configuration screen, see:
Cluster Launch Wizard ❯ Connection Configuration
Endpoint
The Endpoint is the access point domain name to your cluster. The URL breaks down as follows:
- example-cluster is the name of the cluster
- customer-domain is your environment
- altinity.cloud is the parent for all environments
- Example: example-cluster.customer-domain.altinity.cloud
UI Text
- “Access point Domain Name”
Use TLS
When True, the connection to the Cluster Endpoints will be secured with TLS.
- Example: True (checked)
UI Text
- “Connection to the Cluster Endpoints will be secured with TLS”
Load Balancer Type
Choice of the Load Balancer you want to use.
- Example: Altinity Edge Ingress
UI Text
- [ none ]
Protocols
Port settings. By default, these settings cannot be unchecked.
- Binary Protocol (port: 9440) = True (checked) UI Text - “This enables native ClickHouse protocol connection”
- HTTP Protocol (port: 8443) = True (checked) UI Text - “This enables native ClickHouse protocol connection”
Datadog integration
For logging purposes, you can request that the third-party application Datadog be set up by Altinity Support.
- Datadog integration (disabled) - This entire section is dimmed.
- Send Logs = False (unchecked)
- Send Metrics = False (unchecked)
UI Text
- [ none ]
IP restrictions
This is used to increase security by using a whitelist, or allowlist of IP numbers to restrict access.
Note that Altinity needs to have certain ports open in order to maintain your tenancy.
- IP restrictions
- Enabled False (unchecked) - This is the default setting
- Enabled True (checked) - Turn on this setting then add IP numbers
UI Text
- Restricts ClickHouse client connections to the provided list of IP addresses in CIDR format. Multiple entries can be separated by new lines or commas
Note:
34.238.65.247,
44.195.72.25,
100.24.75.12,
10.0.0.0/8,
172.16.0.0/12,
192.168.0.0/16,
10.128.0.0/23,
10.128.2.0/23,
10.128.4.0/23
is added automatically as it is required for Altinity.Cloud to operate.
Uptime Schedule
Used to set a schedule for when the clusters should run. (Screen 5 of 6) For this Quick Start Guide, the servers are set to ALWAYS ON. Always On | Stop When Inactive | On Schedule
To see the full-sized Uptime Schedule screen, see:
Cluster Launch Wizard ❯ Uptime Schedule
To set (or remove) an Uptime Schedule:
- Click one of the three Uptime Schedule settings.
- Select NEXT to advance to the last cluster wizard screen Review & Launch.
- Or, select BACK to return to the previous cluster wizard screen Connection Configuration.
- Or, select CANCEL to close the wizard without saving.
Sets server uptime. See the General User Guide > Uptime Schedule Settings page for setting details .
Always On
Use this setting to run your cluster 24/7.
UI Text
- “Altinity.Cloud shall not trigger any Stop or Resume Operations on this Cluster automatically”
Stop When Inactive
Use this setting to stop clusters from running after a set number of hours. Servers must be manually restarted.
- Example: Hours of inactivity 24
UI Text
- “The cluster will be stopped automatically when there is no activity for a given amount of hours”
On Schedule
Use this setting to schedule the times in each of the days of a week to run.
UI Text
- Uptime Schedule for
. - “Schedule (Time in GMT)”
- “Monday Tuesday Wednesday Thursday Friday Saturday Sunday”
- “Active”, “All Day”, “From: hh:mm AM/PM To: hh:mm AM/PM”
Review & Launch
This is the last chance to review settings before saving and launching the new ClickHouse cluster. (Screen 6 of 6)
- Select LAUNCH to save and start the cluster.
- Or, select BACK to return to the previous cluster wizard screen Uptime Schedule.
- Or, select CANCEL to close the wizard without saving.
To see the full-sized Review & Launch screen, see:
Cluster Launch Wizard ❯ Review & Launch
Cluster Cost Estimate
UI Text You are about to launch cluster example-cluster with 1 shards with replication which will require:
- 2 x CH Nodes m5.large
- 14 GB of memory in total
- 200 GB of storage volume in total
- Estimated Cluster cost: $0.76/hour ($547.20/month)
Select LAUNCH to save and start the cluster.
Figure 24 – The LAUNCH button on the last wizard screen Review & Launch.
Conclusion
Launching a new cluster using the Cluster Launch Wizard is now complete.
Continue on to the next section:
2.6 - Creating Tables and Adding Data
26 January 2023 · Read time 3 min
Overview - Creating Tables
This section is for first time users that have just learned how to create a ClickHouse cluster, and now want to add tables and data.
The Altinity.Cloud Manager (ACM) screens used on this page are:
- ACM home page ❯ Clusters
- ACM: Cluster (name) > Explore > Query tab
- ACM: Cluster (name) > Explore > Schema tab
- ACM: Cluster (name) > Explore > Schema tab > Table (name)
- ACM: Cluster (name) > Explore > Schema tab > Table (name) > Table Details > Sample Rows
Creating Tables
The next step after creating a new ClickHouse cluster is to create tables. After completing this example, two empty tables are created:
- events_local
- events
Prerequisite
- Open the UI screen: ACM: Cluster (name) > Explore > Schema tab
To create two tables in your blank cluster by using a SQL Query:
-
From the domain menu, select your domain (ie. your.domain). https://acm.altinity.cloud/clusters
-
In your cluster (ie. example-cluster), select EXPLORE. Confirm that the Query tab is selected.
-
To create the first table called events_local table, copy and paste in the following SQL query then EXECUTE:
CREATE TABLE IF NOT EXISTS events_local ON CLUSTER '{cluster}' ( event_date Date, event_type Int32, article_id Int32, title String ) ENGINE = ReplicatedMergeTree('/clickhouse/{cluster}/tables/{shard}/{database}/{table}', '{replica}') PARTITION BY toYYYYMM(event_date) ORDER BY (event_type, article_id);
-
To create the second table called events, copy and paste in the following SQL query then EXECUTE:
CREATE TABLE events ON CLUSTER '{cluster}' AS events_local ENGINE = Distributed('{cluster}', default, events_local, rand())
-
Below the EXECUTE button, the following information displays after running each SQL query:
example-cluster.your-domain.altinity.cloud:8443 (query time: 0.335s)
chi-example-cluster-example-cluster-0-0 9000 0 1 0 chi-example-cluster-example-cluster-0-1 9000 0 0 0
-
In the Schema tab, confirm that the two tables events_local and events are present.
Adding Data
In the Query tab, SQL commands are used to add data to your ClickHouse tables and to verify the additions.
Prerequisite
- Open the UI screen: ACM: Cluster (name) > Explore > Schema tab
To add data to the events_local table:
-
Copy and paste the following to the cluster Query field then Execute:
INSERT INTO events VALUES(today(), 1, 13, 'Example');
-
Verify that the data has been added to events_local by running the query:
SELECT * FROM events;
-
The following response appears below the EXECUTE button.
┌─event_date─┬─event_type─┬─article_id─┬─title───┐ │ 2023-01-04 │ 1 │ 13 │ Example │ └────────────┴────────────┴────────────┴─────────┘
Viewing Schema and Data
The Schema tab contains a list of your ClickHouse tables and data in your cluster.
Prerequisite
- Open the UI screen: ACM: Cluster (name) > Explore > Schema tab
- UI screen: ACM: Cluster (name) > Explore > Schema tab > Table (name) > Table Details > Sample Rows
To view the Adding:
-
Select the Schema tab. Two tables are listed, events_local and events.
-
Within the Schema tab, select the Table link called events_local.
-
In the Table Details dialog box, select the tab Sample Rows. The following information appears.
┌─event_date─┬─event_type─┬─article_id─┬─title───┐ │ 2023-01-04 │ 1 │ 13 │ Example │ └────────────┴────────────┴────────────┴─────────┘
-
Select DONE to close the Table Details window.
2.7 - ClickHouse Ubuntu Terminal Remote Client
26 January 2023 · Read time 2 min
Overview - Ubuntu ClickHouse Client
This section covers the installation of the ClickHouse client on the Linux OS Ubuntu 20.04.
After installation, you will be able to run use ClickHouse queries from the terminal.
- In order to get the same results as shown on this page, complete Creating Tables and Adding Data.
Updating Ubuntu
-
Update your Ubuntu OS and confirm the version with the following commands:
sudo apt-get update sudo apt-get upgrade lsb_release -a
Installing ClickHouse drivers
To install ClickHouse drivers on Ubuntu 20.04:
-
Copy and paste each of the following lines to your Ubuntu terminal in sequence:
sudo apt-get install -y apt-transport-https ca-certificates dirmngr sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 8919F6BD2B48D754 echo "deb https://packages.clickhouse.com/deb stable main" | sudo tee /etc/apt/sources.list.d/clickhouse.list sudo apt-get update sudo apt-get install -y clickhouse-client clickhouse-client --version ClickHouse client version 22.12.3.5 (official build).
More information
- ClickHouse: Installation Options (ie. installing specific versions of ClickHouse)
- Altinity: Detailed Installation of Altinity Stable Builds
Logging on to your cluster
-
From the Connection Details, copy and paste the text string to your Ubuntu terminal:
clickhouse-client -h example-cluster.your-domain.altinity.cloud --port 9440 -s --user=admin --password
ClickHouse terminal response
-
After you enter your ClickHouse cluster password, you enter the ClickHouse interactive mode.
ClickHouse prompt example:example-cluster :)
(test2) user@xubuntu:~$ clickhouse-client -h example-cluster.your-domain.altinity.cloud --port 9440 -s --user=admin --password ClickHouse client version 22.12.3.5 (official build). Password for user (admin): ********* Connecting to example-cluster.your-domain.altinity.cloud:9440 as user admin. Connected to ClickHouse server version 22.3.15 revision 54455. ClickHouse server version is older than ClickHouse client. It may indicate that the server is out of date and can be upgraded. example-cluster :)
ClickHouse query examples
-
At the ClickHouse prompt, enter the query command show tables:
example-cluster :) show tables SHOW TABLES Query id: c319298f-2f28-48fe-96ca-ce59aacdbc43 ┌─name─────────┐ │ events │ │ events_local │ └──────────────┘ 2 rows in set. Elapsed: 0.080 sec.
-
At the ClickHouse prompt, enter the query select * from events:
example-cluster :) select * from events SELECT * FROM events Query id: 0e4d08b3-a52d-4a03-917d-226c6a2b00ac ┌─event_date─┬─event_type─┬─article_id─┬─title───┐ │ 2023-01-04 │ 1 │ 13 │ Example │ │ 2023-01-10 │ 1 │ 13 │ Example │ │ 2023-01-10 │ 1 │ 14 │ Example │ └────────────┴────────────┴────────────┴─────────┘ 3 rows in set. Elapsed: 0.073 sec.
To quit, or exit from the ClickHouse interactive mode:
-
Enter the exit command to return to your Ubuntu shell environment.
example-cluster :) exit Bye.
This completes the quick start guide to installing ClickHouse command-line client on an Ubuntu OS.
Related links
Troubleshooting
Make sure you have the latest ClickHouse client installed to avoid connection issues.
Problem
- Error Code: 210 SSL connection unexpectedly closed.
- Problem result: Cannot connect to ACM Cluster with clickhouse-client terminal command.
ubuntu@ip-172-31-16-238:~$ clickhouse-client -h test-anywhere.awsanywhere.altinity.cloud --port 9440 -s --user=admin --password=supersecretpassword123
# Error response: note the older version of the ClickHouse client v18.16.1
ClickHouse client version 18.16.1.
Connecting to test-anywhere.awsanywhere.altinity.cloud:9440 as user admin.
Code: 210. DB::NetException: SSL connection unexpectedly closed (test-gap-anyw.awsanywhere.altinity.cloud:9440, 33.33.33.333)
Reason for the error
When you have an outdated version of the ClickHouse client software installed, you may fail to connect to your ACM cluster. The issue may be that a standard apt-get install or apt-get upgrade will not retrieve the latest version of the ClickHouse client as shown in this example terminal listing.
sudo apt install clickhouse-client
...
# Note the older client
Get:25 http://us-east-2.ec2.archive.ubuntu.com/ubuntu focal/universe amd64 clickhouse-common amd64 18.16.1+ds-7 [9266 kB]
Get:26 http://us-east-2.ec2.archive.ubuntu.com/ubuntu focal/universe amd64 clickhouse-client amd64 18.16.1+ds-7 [138 kB]
---
Solution The solution is to follow the instructions on this page:
2.8 - ClickHouse Python Client
26 January 2023 · Read time 4 min
Overview - Python ClickHouse Client
This section covers the installation and use of the Python ClickHouse client.
After installation, you will be able to run use ClickHouse queries on any platform that will run Python3.
- You must first have completed Creating Tables and Adding Data.
- You have copied the Connection Details from your cluster.
- Python version 3.7 (or later) is installed (this page is tested using Python 3.11.1)
More information
- Altinity Blog: ClickHouse and Python: Getting to know the ClickHouse-driver Client (Feb1.19)
- ClickHouse Driver 0.2.5 (Dec 2023)
- GitHub: clickhouse-driver (Dec 2023)
Installing the ClickHouse Python driver
Install ClickHouse drivers using the Python 3 PIP package installer:
pip install clickhouse-driver
Example Python program
The following Python program demonstrates:
- Importing the clickhouse-driver library (that was previously installed by the Python 3 PIP package installer)
- Connecting to your ClickHouse cluster example-cluster
- Listing all of the tables that exist in the example-cluster
- Listing the data in the example table events_local
- Showing the version number of the Python clickhouse-driver (0.2.5)
Shortcut for experienced users
- Python program filename: ClickHouse-example.py (copy and paste the code)
- Update the program strings for the cluster name from Connection Details link on your cluster, such as:
your-company-example
yourpasswordhere
- Run the command:
python3 ClickHouse-example.py
Instructions
-
Modify the following in the Python program ClickHouse-example.py as follows:
- Change the cluster name, replacing
your-company-example
- Change password
yourpasswordhere
to your own ClickHouse cluster name
- Change the cluster name, replacing
-
Run the program from the terminal or your IDE:
python3 ClickHouse-example.py
Code Snippet 1 - ClickHouse-example.py
import clickhouse_driver
print(clickhouse_driver.__version__)
# No return characters:
# Replace your-company-example
# Replace yourpasswordhere
# client = Client('example-cluster.your-company-example.altinity.cloud', user='admin', password='yourpasswordhere', port=9440, secure='y', verify=False)
# Connect to your cluster
from clickhouse_driver import Client
client = Client('example-cluster.your-company-example.altinity.cloud',
user='admin',
password='yourpasswordhere',
port=9440,
secure='y',
verify=False)
# Show tables
tables = client.execute('SHOW TABLES in default')
print(tables)
# Show data
result = client.execute('SELECT * FROM default.events')
print(result)
# Show ClickHouse Python driver version
version = (clickhouse_driver.__version__)
print("ClickHouse Python version: ", version)
Python program response
[('events',), ('events_local',)]
[(datetime.date(2023, 1, 4), 1, 13, 'Example'), (datetime.date(2023, 1, 10), 1, 13, 'Example'), (datetime.date(2023, 1, 10), 1, 14, 'Example')]
ClickHouse Python version: 0.2.5
Python Console
This section shows how you can use the Python console to interactively connect to your ClickHouse cluster on Altinity and send SQL queries.
- First copy your Connection Details from your cluster you want to communicate with.
- Bring up the terminal and enter Python console mode, then copy and paste the following commands shown after the Python console prompt »>:
# Get into Python console mode
python3
>>>
# Getting the ClickHouse Python driver version number
>>> import clickhouse_driver
>>> print(clickhouse_driver.__version__)
0.2.5
# Connect to your ClickHouse cluster (replace <HOSTNAME> and <PASSWORD>)
>>> from clickhouse_driver import Client
>>> client = Client('<HOSTNAME>', user='admin', password=<PASSWORD>, port=9440, secure='y', verify=False)
# Confirm that the client object is created
>>> print(client)
<clickhouse_driver.client.Client object at 0x107730910>
# Show all tables
>>> client.execute('SHOW TABLES in default')
[('events',), ('events_local',)]
# Show data
>>> result = client.execute('SELECT * FROM default.events')
>>> print(result)
[(datetime.date(2023, 1, 4), 1, 13, 'Example'), (datetime.date(2023, 1, 10), 1, 13, 'Example'), (datetime.date(2023, 1, 10), 1, 14, 'Example')]
# ClickHouse Version 0.2.5 as of January 2023
version = (clickhouse_driver.__version__)
print("ClickHouse Python version: ", version)
ClickHouse Python version: 0.2.5
Checking your ClickHouse Version from PIP
To check your Python ClickHouse version installation from the terminal, enter:
pip show clickhouse-driver
username) ➜ ~
username) ➜ ~ pip show clickhouse-driver
Name: clickhouse-driver
Version: 0.2.5
Summary: Python driver with native interface for ClickHouse
Home-page: https://github.com/mymarilyn/clickhouse-driver
Author: Konstantin Lebedev
Author-email: kostyan.lebedev@gmail.com
License: MIT
Location: /Users/username/lib/python3.11/site-packages
Requires: pytz, tzlocal
Required-by:
This concludes the Quick Start instructions for how to use the Python3 ClickHouse driver.
Related links
2.9 - ClickHouse Macintosh (Monterey) Client
26 January 2023 · Read time 4 min
Overview - Macintosh ClickHouse Client
This section covers the installation and use of the Mac ClickHouse client.
After installation, you will be able to run ClickHouse queries from a Macintosh terminal.
The following ClickHouse install instructions using Brew is tested to work on Monterey (OS version 12.1)
- If you want the same results as shown in the examples, complete Creating Tables and Adding Data.
Prerequisites
- You have copied the Connection Details from your cluster.
- Python version 3.7 (or later) is installed
- The PIP Python Package installer is installed
- The Brew package installer is installed
More information
Installing ClickHouse on macOS
Installation of the macOS ClickHouse client uses the Brew package installer.
To install macOS ClickHouse client:
-
Enter each of the four lines in turn. The final step starts ClickHouse.
brew tap altinity/clickhouse brew tap-info --json altinity/clickhouse brew install clickhouse brew services start clickhouse
Checking the ClickHouse Version Installed
This step checks the installed version of the ClickHouse macOS client.
You will note that it is not necessary to login to ClickHouse to run this command.
To check the installed ClickHouse version from a macOS terminal:
-
Enter the following string:
clickhouse client -q 'SELECT version()' 22.7.2.1
Note that you are still in the macOS shell, not the ClickHouse interactive mode, as the following examples demonstrate.
Logging on to your ClickHouse cluster
To login to your cluster from the macOS terminal:
-
From the Connection Details, copy and paste the string of text into the macOS terminal:
clickhouse-client -h example-cluster.your-cluster.altinity.cloud --port 9440 -s --user=admin --password
ClickHouse terminal response
-
Enter your ClickHouse cluster password at the prompt.
-
The ClickHouse version number is displayed, and the interactive prompt mode shows:
example-cluster :)ClickHouse client version 22.7.2.1. Password for user (admin): ******** Connecting to example-cluster.your-cluster.altinity.cloud:9440 as user admin. Connected to ClickHouse server version 22.3.15 revision 54455. ClickHouse server version is older than ClickHouse client. It may indicate that the server is out of date and can be upgraded. example-cluster :)
Running ClickHouse Queries
To display all the tables in your cluster from a macOS terminal:
-
At the ClickHouse prompt, enter the query command show tables:
example-cluster :) show tables SHOW TABLES Query id: c04f8699-33db-4f4f-9a5b-e92fd25b6bb6 Password for user (admin): Connecting to example-cluster.your-cluster.altinity.cloud:9440 as user admin. Connected to ClickHouse server version 22.3.15 revision 54455. ClickHouse server version is older than ClickHouse client. It may indicate that the server is out of date and can be upgraded. ┌─name─────────┐ │ events │ │ events_local │ └──────────────┘ 2 rows in set. Elapsed: 0.073 sec.
To display the data in the in your cluster table named events from a macOS terminal:
-
At the ClickHouse prompt, enter the query command select * from events:
example-cluster :) select * from events SELECT * FROM events Query id: 998dbb3e-786e-404e-9d17-f044a6098191 Password for user (admin): Connecting to example-cluster.your-cluster.altinity.cloud:9440 as user admin. Connected to ClickHouse server version 22.3.15 revision 54455. ClickHouse server version is older than ClickHouse client. It may indicate that the server is out of date and can be upgraded. ┌─event_date─┬─event_type─┬─article_id─┬─title───┐ │ 2023-01-04 │ 1 │ 13 │ Example │ │ 2023-01-10 │ 1 │ 13 │ Example │ │ 2023-01-10 │ 1 │ 14 │ Example │ └────────────┴────────────┴────────────┴─────────┘ 3 rows in set. Elapsed: 0.074 sec. example-cluster :)
To quit, or exit from the ClickHouse interactive mode:
-
Enter the exit command to return to your macOS shell environment.
example-cluster :) exit Bye.
This concludes the Quick Start instructions for how to install and use the Macintosh ClickHouse terminal client.
Related links
3 - Altinity.Cloud Demo Cluster
To help new users to experience ClickHouse, and assist experience ClickHouse administrators test connections between applications and ClickHouse, Altinity has created several guides in both the Integrations section of the Altinity Documentation site, and various blog posts posted in the Altinity Resources Page.
As part of these guides, Altinity has created a public ClickHouse database hosted through Altinity.Cloud. This allows users to test business intelligence applications, understand how to construct SQL queries in a way that maximizes on the ClickHouse column based architecture, and use the understand in developing their own ClickHouse based applications and services.
The following details the connection details for the Altinity.Cloud demo ClickHouse database, and some examples of connecting to it.
Altinity.Cloud Demo Database Details
The Altinity.Cloud Demo database has the following connection information:
- URL:
github.demo.altinity.cloud
- HTTP Protocol:
HTTPS
- HTTPS Port:
8443
- ClickHouse Client Port:
9440
- Database:
default
- Username:
demo
- Password:
demo
Altinity.Cloud Demo Database Connection Examples
The following examples provide a quick demonstration on how to connect specific interfaces and applications to the Altinity.Cloud Demo database. For more information on creating a trial Altinity.Cloud environment for your organizations use, see the Altinity.Cloud trial registration page.
ClickHouse Client
To connect to the Altinity.Cloud Demo database with the native ClickHouse client, use the following command (note that for operating systems such as OS X, use clickhouse client
instead of clickhouse-client
):
clickhouse-client --host github.demo.altinity.cloud --user=demo --password=demo --port=9440 --secure
DBeaver and JDBC Connectors
For applications like Dbeaver that use JDBC drivers to connect to database, use the following settings:
- From the main menu, select Database->New Database Connection.
- From the Select your database screen, select ClickHouse.
- Set the following options:
- Tab *Main:
- JDBC URL:
jdbc:clickhouse://github.demo.altinity.cloud:8443/default
(DBeaver populates this by default based on the other settings). - Host:
github.demo.altinity.cloud
- Port:
8443
- Database/Schema:
default
- Username:
demo
- Password:
demo
- JDBC URL:
- Tab Driver Properties:
- ssl:
true
- ssl:
- Tab *Main:
- Select Finish.
Grafana
For Grafana, see the Integrating Grafana with ClickHouse guide.
Altinity.Cloud Tables
The following tables are part of the Altinity.Cloud Demo database.
ontime
The table ontime
is provided from the Bureau of Transportation Statistics.
The ontime
table is collected from Airline On-Time Performance Data. This information is based on flight data collected by US certified air carriers regarding departure and arrival times, flights cancelled, flights with delayed departure or arrival times, and other relevant data.
airports
The table airports
is information on airports including the name of the airport, city, latitude and longitude, and other relevant information. For the Altinity.Cloud Demo database, this is often joined with the ontime
table.
The information in this table is provided by OpenFlights.org, from their Airport database.
tripdata
The tripdata
table is based on the New York City Taxi & Limousine Commission (TLC) Trip Record Data Yellow Cab ride data. This table contains information about rides starting and ending in New York City, the data and time of pickups and dropoffs, the total amount of the fair, and other data. This was used as part of the article Tableau Tricks with ClickHouse.
github_events
The table github_events
is a collection of all Github events between 2011 to 2020, comprising 3.1 billion records and 200 GB of data. This is provided from GH Archive.
References
datatype_test
The datatype_test
table is a small table for testing datatypes, and does not current play into current demonstrations.
4 - General User Guide
Altinity.Cloud is made to be both convenient and powerful for ClickHouse users. Whether you’re a ClickHouse administrator or a developer, these are the concepts and procedures common to both.
4.1 - How to Create an Account
To create an Altinity.Cloud account, visit the Altinity.Cloud info page and select Free Trial. Fill in your contact information, and our staff will reach out to you to create a test account.
If you’re ready to upgrade to a full production account, talk to one of our consultants by filling out your contact information on our Consultation Request page.
4.2 - How to Login
Altinity.Cloud provides the following methods to login to your account:
- Username and Password
- Auth0
Login with Username and Password
To login to Altinity.Cloud with your Username and Password:
- Open the Altinity.Cloud website.
- Enter your Email Address registered to your Altinity.Cloud account.
- Enter your Password.
- Click Sign In.
Once authenticated, you will be logged into Altinity.Cloud.
Login with Auth0
Auth0 allows you to use your existing Altinity account using trust authentication platforms such as Google to verify your identity.
- IMPORTANT NOTE: This requires that your Altinity.Cloud account matches the authentication platform you are using. For example, if your email address in Altinity.Cloud is listed as Nancy.Doe@gmail.com, your Gmail address must also be Nancy.Doe@gmail.com.
To login using Auth0:
- Open the Altinity.Cloud website.
- Select Auth0.
- Select which authentication platform to use from the list (for example: Google).
- If this is your first time using Auth0, select which account to use. You must be already logged into the authentication platform
- You will be automatically logged into Altinity.Cloud.
4.3 - How to Logout
To logout:
- Select your profile icon in the upper right hand corner.
- Select Log out.
Your session will be ended, and you will have to authenticate again to log back into Altinity.Cloud.
4.4 - Account Settings
Access My Account
To access your account profile:
-
Select your user profile in the upper right hand corner.
-
Select My Account.
My Account Settings
From the My Account page the following settings can be viewed:
- Common Information. From here you can update or view the following:
- Email Address View Only: Your email address or login
- Password settings.
- Dark Mode: Set the user interface to either the usual or darker interface.
- API Access: The security access rights assigned to this account.
- Access Rights: What security related actions this account can perform.
Update Password
To update your account password:
-
Click your profile icon in the upper right hand corner.
-
Select My Account.
-
In the Common Information tab, enter the new password in the Password field.
-
Select Save.
API Access Settings
Accounts can make calls to Altinity.Cloud through the API address at https://acm.altinity.cloud/api, and the Swagger API definition file is available at https://acm.altinity.cloud/api/reference.json.
Access is controlled through API access keys and API Allow Domains.
API Access Keys
Accounts can use this page to generate one or more API keys that can be used without exposing the accounts username and password. They allow API calls made to Altinity.Cloud to be made by the same Account as the keys were generated for.
When an Altinity.Cloud API key is generated, an expiration date is set for the key. By default, the expiration date is set 24 hours after the key is generated, with the date and time set to GMT. This date can be manually adjusted to allow the expiration date to make the API key invalid at the date of your choosing.
To generate a new API key:
- Click your profile icon in the upper right hand corner.
- Select My Account.
- In the API Access tab, select + Add Key. The key will be available for use with the Altinity.Cloud API.
To change the expiration date of an API key:
- Click your profile icon in the upper right hand corner.
- Select My Account.
- In the API Access tab, update the date and time for the API key being modified. Note that the date and time are in GMT (Greenwich Mean Time).
To remove an API key:
- Click your profile icon in the upper right hand corner.
- Select My Account.
- In the API Access tab, select the trashcan icon next to the API key to delete. The key will no longer be allowed to connect to the Altinity.Cloud API for this account.
API Allow Domains
API submissions can be restricted by the source domain address. This provides enhanced security by keeping API communications only between authorized sources.
To update the list of domains this account can submit API commands from:
- Click your profile icon in the upper right hand corner.
- Select My Account.
- In the API Access tab, list each URL this account can submit API commands from. Each URl is a separate line.
- Click Save to update the account settings.

Access Rights
The Access Rights page displays which permissions your account has. These are listed in three columns:
- Section: The area of access within Altinity.Cloud, such as Accounts, Environments, and Console.
- Action: What actions the access right rule allows within the section. Actions marked as
*
include all actions within the section. - Rule: Whether the Action in the Section is Allow (marked with a check mark), or Deny (marked with an X).
4.5 - Billing
Accounts with the role orgadmin
are able to access the Billing page for their organizations.
To access the Billing page:
- Login to your Altinity.Cloud with an account with the
orgadmin
role. - From the upper right hand corner, select the Account icon, and select Billing.

From the billing page, the following Usage Summary and the Billing Summary are available for the environments connected to the account.

Usage Summary
The Usage Summary displays the following:
- Current Period: The current billing month displaying the following:
- Current Spend: The current total value of charges for Altinity.Cloud services.
- Avg. Daily Spend: The average cost of Altinity.Cloud services per day.
- Est. Monthly BIll: The total estimated value for the current period based on Current Spend and if usage continues at the current rate.
- Usage for Period: Select the billing period to display.
- Environment: Select the environment or All environments to display billing costs for. Each environment, its usage, and cost will be displayed with the total cost.
Billing Summary
The Billing Summary section displays the payment method, service address, and email address used for billing purposes. Each of these settings can be changed as required.
4.6 - Clusters View
15 May 2023 · Read time 2 min
Introduction
The Clusters view page allows you to view your ClickHouse clusters. The top navigation bar includes access to your Account menu. When you are logged into the Altinity Cloud Manager (ACM), select the Altinity.Cloud logo at the top left to take you to the Clusters view page.
- Create Clusters - (Launch New Cluster guide)
- Clusters - (Cluster Explore guide)
- Environment - (Administrator Guide guide)
- User Management - (Account Settings guide)
Create Clusters
For more information on how to create new clusters, see:
Clusters
Clusters are displayed as panels or tiles or in a list format. Each cluster that is associated with your Altinity.Cloud account is listed in either tile format, or in a table listing.
- For details on how to launch and manage clusters, see: Administrator Guide for Clusters.
Environment
Environments are groups of several clusters. Change the environment name to display only those clusters that are members.
- Accounts that are assigned to multiple Altinity.Cloud environments can select which environment’s clusters they are viewing.
- For more information on managing environments, see: Administrator Guide.
To change to a different Environment:
- From the upper right-hand corner of the ACM, select a name (Example: demo) from the Environment.
- Or, select the Environments from the left navigation panel, then select an Environment Name (Example: demo).
User Management
Your account menu is where you edit your account settings. Options include:
- My Account - (Email, Role, Password change, Theme)
- Notifications - (Notices of seminars and access level changes)
- Billing - (Overview & Summary, Usage Details, Invoices)
- System Status - (Uptime history bar chart)
- Documentation - (Altinity.Cloud documentation site)
- About (the Altinity.Cloud Manager version)
- Log out
For information about your account profile and settings, see:
Organization Administrators
Organizational Admins have additional options in the left navigation panel that allows them to select the Accounts, Environments, and Clusters connected to the organization’s Altinity.Cloud account.
4.7 - Clusters Reference
ClickHouse databases are managed through clusters, which harness the power of distributed processing to quickly deliver results on even the most complex and data intensive queries.
Altinity.Cloud users can create their own ClickHouse Clusters tailored to their organization’s needs.
4.7.1 - View Cluster Details
8 May 2023 · Read time 3 min
Cluster Dashboard
The left-hand option labeled Clusters, is what you select to view your clusters. Selecting a cluster displays its Dashboard.
-
The left side includes the Endpoint with a Connection Details link, Layouts that summarize the nodes, shards and replication, the Replication count, the Version of ClickHouse installed, the Latest Backup date, the Last Query date, the Last Insert date,
-
The right side includes Monitoring with a link to View in Grafana, the number of Nodes, the type of Load Balancer, the Node Type, the Node Storage capacity in GB and type, the Node Memory in GB, and the Node CPU count.
-
The bottom shows pie charts for Volume (disk space used for each replica) and Memory used by each replica.
More Information
The following screen shot is what you see when you select Clusters from the left-hand navigation panel.
The sections in Figure 1 are detailed as follows:
(A) Cluster Management
The top menu bar provides cluster management functions.
- Actions menu - Includes options to Upgrade, Rescale, Resume, Restart, Export Configuration, Publish ConfigurationPublish Configuration, Launch a Replica Cluster, and Destroy a cluster Addition functions for authorized users will show Restore a Backup and Create Backup. Contact Altinity for more information.
- Configure menu - includes Settings, Profiles, Users, Connections, and Uptime Schedule.
- Explore button - contains work areas for Query, Schema , Workload, and DBA Tools.
- Alerts
- Logs
(B) Health
- Check Cluster Health.
(C) Access Point
- View the cluster’s Access Point.
(D) Monitoring, Queries
- Monitor the Cluster and its Queries.
(E) Summary Information
- View summary details for the Cluster or Node.
- Select Nodes to view details on the cluster’s Nodes.
Nodes Summary
The Nodes tab displays detailed information for each of your nodes in the cluster.
Details for each node include:
- Endpoint with a link to a node’s Connection Details
- Version of ClickHouse installed
- Type CPU Processor used
- Node Storage size in GB
- Memory allocated RAM for the node
- Availability Zone that is set in your AWS or GKE cloud provider
Select Node View or View for the specific node to access:
Node Connection
For the selected Node, Connection Details lists connection strings for use by various clients, including the clickhouse-client, JDBC drivers, HTTPS, and Python.
Similar to the Cluster Access Point, this page provides connection information to a specific node.
Node Dashboard
From the Node Dashboard Page users can:
(A) Manage Nodes
- Actions menu
- Tables and structure with Explore
- Logs
(B) Node Heath
- Online/Offline status
- health checks passed status
(C) Metrics
- View a node’s metrics, summary details, and its Schema.
Node Metrics
Node Metrics provides a breakdown of the node’s performance, such as CPU data, active threads, etc.
Node Schema
The Node Schema provides a view of the databases’ schema and tables.
More Information For more information on how to interact with a Node by submitting queries, viewing the schema of its databases and tables, and viewing process, see the Cluster Explore Guide.
4.7.2 - Cluster Actions
Launched clusters can be have different actions applied to them based on your needs.
4.7.2.1 - Upgrade Cluster
Clusters can be upgraded to versions of ClickHouse other than the one your cluster is running.
When upgrading to a ClickHouse Altinity Stable Build, review the release notes for the version that you are upgrading to.
How to Upgrade an Altinity Cloud Cluster
To upgrade a launched cluster:
-
Select Actions for the cluster to upgrade.
-
Select Upgrade.
-
Select the ClickHouse version to upgrade to.
-
Select Upgrade to start the process.
The upgrade process completion time varies with the size of the cluster, as each server is upgraded individually. This may cause downtime while the cluster is upgraded.
4.7.2.2 - Rescale Cluster
The size and structure of the cluster may need to be altered after launching based on your organization’s needs. The following settings can be rescaled:
- Number of Shards
- Number of Replicas
- Node Type
- Node Storage
- Number of Volumes
- Apply to new nodes only: This setting will only effect nodes created from this point forward.
See Cluster Settings for more information.
How to Rescale a Cluster
To rescale a cluster:
-
Select Actions for the cluster to rescale.
-
Select Rescale.
-
Set the new values of the cluster.
-
Click OK to begin rescaling.
Depending on the size of the cluster, this may take several minutes.
4.7.2.3 - Stop and Start a Cluster
To stop an launched cluster, or start a stopped cluster:
- From either the Clusters View or the Cluster Details Page, select Actions.
- If the cluster is currently running, select Stop to halt its operations.
- If the cluster has been stopped, select Start to restart it.
Depending on the size of your cluster, it may take a few minutes until it is fully stopped or is restarted. To access the health and availability of the cluster, see Cluster Health or the Cluster Availability.
4.7.2.4 - Export Cluster Settings
The structure of an Altinity Cloud cluster can be exported as JSON. For details on the cluster’s settings that are exported, see Cluster Settings.
To export a cluster’s settings to JSON:
- From either the Clusters View or the Cluster Details Page, select Actions, then select Export.
- A new browser window will open with the settings for the cluster in JSON.
4.7.2.5 - Replicate a Cluster
Clusters can be replicated with the same or different settings. These can include the same database schema as the replicated cluster, or launched without the schema. This may be useful to create a test cluster, then launch the production cluster with different settings ready for production data.
For complete details on Altinity.Cloud clusters settings, see Cluster Settings.
To create a replica of an existing cluster:
- From either the Clusters View or the Cluster Details Page, select Actions, then select Launch a Replica Cluster.
- Enter the desired values for Resources Configuration.
-
To replicate the schema of the source directory, select Replicate Schema.
-
Click Next to continue.
-
- High Availability Configuration, and Connection Configuration.
- Each section must be completed in its entirety before moving on to the next one.
- In the module Review & Launch, verify the settings are correct. When finished, select Launch.
Depending on the size of the new cluster it will be available within a few minutes. To verify the health and availability of the new cluster, see Cluster Health or the Cluster Availability.
4.7.2.6 - Destroy Cluster
When a cluster is no longer required, the entire cluster and all of its data can be destroyed.
- IMPORTANT NOTE: Once destroyed, a cluster can not be recovered. It must be manually recreated.
To destroy a cluster:
-
From either the Clusters View or the Cluster Details Page, select Actions, then select Destroy.
-
Enter the cluster name, then select OK to confirm its deletion.
4.7.3 - Cluster Settings
ClickHouse Clusters hosted on Altinity.Cloud have the following structural attributes. These determine options such as the version of ClickHouse installed on them, how many replicas, and other important features.
Name | Description | Values |
---|---|---|
Cluster Name | The name for this cluster. It will be used for the hostname of the cluster. | Cluster names must be DNS compliant. This includes:
|
Node Type | Determines the number of CPUs and the amount of RAM used per node. | The following Node Types are sample values, and may be updated at any time:
|
Node Storage | The amount of storage space available to each node, in GB. | |
Number of Volumes | Storage can be split across multiple volumes. The amount of data stored per node is the same as set in Node Storage, but it split into multiple volumes. Separating storage into multiple volumes can increase query performance. |
|
Volume Type | Defines the Amazon Web Services volume class. Typically used to determine whether or not to encrypt the columns. | Values:
|
Number of Shards | Shards represent a set of nodes. Shards can be replicated to provide increased availability and computational power. | |
ClickHouse Version | The version of the ClickHouse database that will be used on each node. To run a custom ClickHouse container version, specify the Docker image to use.
|
Currently available options:
|
ClickHouse Admin Name | The name of the ClickHouse administrative user. | Set to admin by default. Can not be changed. |
ClickHouse Admin Password | The password for the ClickHouse administrative user. | |
Data Replication | Toggles whether shards will be replicated. When enabled, Zookeeper is required to manage the shard replication process. | Values:
|
Number of Replicas | Sets the number of replicas per shard. Only enabled if Data Replication is enabled. | |
Zookeeper Configuration | When Data Replication is set to Enabled, Zookeeper is required. This setting determines how Zookeeper will run and manage shard replication. The Zookeeper Configuration mainly sets how many Zookeeper nodes are used to manage the shards. More Zookeeper nodes increases the availability of the cluster. |
Values:
|
Zookeeper Node Type | Determines the type of Zookeeper node. | Defaults to default and can not be changed. |
Node Placement | Sets how nodes are distributed via Kubernetes. Depending on your situation and how robust you want your replicas and clusters. | Values:
|
Enable Backups | Backs up the cluster. These can be restored in the event data loss or to roll back to previous versions. | Values:
|
Backup Schedule | Determines how often the cluster will be backed up. | Defaults to Daily |
Number of Backups to keep | Sets how many backups will be stored before deleting the oldest one | Defaults to 5. |
Endpoint | The Access point Domain Name. | This is hard set by the name of your cluster and your organization. |
Use TLS | Sets whether or not to encrypt external communications with the cluster to TLS. | Default to Enabled and can not be changed. |
Load Balancer Type | The load balancer manages communications between the various nodes to ensure that nodes are not overwhelmed. | Defaults to Altinity Edge Ingress |
Protocols | Sets the TCP ports used in external communications with the cluster. | Defaults to ClickHouse TCP port 9440 and HTTP port 8443 . |
4.7.4 - Configure Cluster
Once a cluster has been launched, it’s configuration can be updated to best match your needs.
4.7.4.1 - How to Configure Cluster Settings
Cluster settings can be updated from the Clusters View or from the Cluster Details by selecting Configure > Settings.
- IMPORTANT NOTE: Changing a cluster’s settings will require a restart of the entire cluster.
Note that some settings are locked - their values can not be changed from this screen.

How to Set Troubleshooting Mode
Troubleshooting mode prevents your cluster from auto-starting after a crash. To update this setting:
- Toggle Troubleshooting Mode either On or Off.
How to Edit an Existing Setting
To edit an existing setting:
- Select the menu on the left side of the setting to update.
- Select Edit.
- Set the following:
- Setting Type.
- Name
- Value
- Select OK to save the setting.

How to Add a New Setting
To add a new setting to your cluster:
- Select Add Setting.
- Set the following:
- Setting Type.
- Name
- Value
- Select OK to save the setting.

How to Delete an Existing Setting
To delete an existing setting:
- Select the menu on the left side of the setting to update.
- Select OK.
- Select Remove to confirm removing the setting.

4.7.4.2 - How to Configure Cluster Profiles
8 May 2023 · Read time 1 min
Introduction
Cluster profiles allow you to set the user permissions and settings based on their assigned profile.
The Cluster Profiles can be accessed from the Clusters View or from the Cluster Details by selecting Configure > Settings.
- ACM URL format:
acm.altinity.cloud/cluster/<cluster number>/settings
Add a New Setting
Use to create a new Attribute setting or duplicate and modify an existing setting.
- Attribute
- config.d file
- users.d file
To add a new new setting:
- From the Cluster Settings page, select ADD SETTING.
- Provide profile’s Name and Description, then click OK.
Edit an Existing Profile
To edit an existing profile:
- Select the menu to the left of the profile to update and select Edit, or select Edit Settings.
- To add a profile setting, select Add Setting and enter the Name and Value, then click OK to store your setting value.
- To edit an existing setting, select the menu to the left of the setting to update. Update the Name and Value, then click OK to store the new value.
Delete Setting
To delete an existing profile:
- Select the menu to the left of the profile to update and select Delete.
- Select OK to confirm the profile deletion.
4.7.4.3 - How to Configure Cluster Users
The cluster’s Users allow you to set one or more entities who can access your cluster, based on their Cluster Profile.
Cluster users can be updated from the Clusters View or from the Cluster Details by selecting Configure > Users.

How to Add a New User
To add a new user to your cluster:
-
Select Add User
-
Enter the following:
- Login: the name of the new user.
- Password and Confirm Password: the authenticating credentials for the user. Th
- Networks: The networks that the user can connect from. Leave as 0.0.0.0/0 to allow access from all networks.
- Databases: Which databases the user can connect to. Leave empty to allow access all databases.
- Profile: Which profile settings to apply to this user.
-
Select OK to save the new user.
How to Edit a User
To edit an existing user:
- Select the menu to the left of the user to edit, then select Edit.
- Enter the following:
- Login: the new name of the user.
- Password and Confirm Password: the authenticating credentials for the user. Th
- Networks: The networks that the user can connect from. Leave as 0.0.0.0/0 to allow access from all networks.
- Databases: Which databases the user can connect to. Leave empty to allow access all databases.
- Profile: Which profile settings to apply to this user.
- Select OK to save the updated user user.
How to Delete a User
- Select the menu to the left of the user to edit, then select Delete.
- Select OK to verify the user deletion.
4.7.5 - Launch New Cluster
Launching a new ClickHouse Cluster is incredibly easy, and only takes a few minutes. For those looking to create their first ClickHouse cluster with the minimal steps, see the Quick Start Guide. For complete details on Altinity.Cloud clusters settings, see Cluster Settings.
To launch a new ClickHouse cluster:
-
From the Clusters View page, select Launch Cluster. This starts the Cluster Launch Wizard.
-
Enter the desired values for Resources Configuration, High Availability Configuration, and Connection Configuration.
- Each section must be completed in its entirety before moving on to the next one.
-
In the module Review & Launch, verify the settings are correct. When finished, select Launch.
Within a few minutes, the new cluster will be ready for your use and display that all health checks have been passed.
4.7.6 - Cluster Alerts
The Cluster Alerts module allows users to set up when they are notified for a set fo events. Alerts can either be a popup, displaying the alert when the user is logged into Altinity.Cloud, or email so they can receive an alert even when they are not logged into Altinty.Cloud.
To set which alerts you receive:
-
From the Clusters view, select the cluster to for alerts.
-
Select Alerts.
-
Add the Email address to send alerts to.
-
Select whether to receive a Popup or Email alert for the following events:
- ClickHouse Version Upgrade: Alert triggered when the version of ClickHouse that is installed in the cluster has a new update.
- Cluster Rescale: Alert triggered when the cluster is rescaled, such as new shards added.
- Cluster Stop: Alert triggered when some event has caused the cluster to stop running.
- Cluster Resume: Alert triggered when a cluster that was stopped has resumed operations.
4.7.7 - Cluster Health Check
From the Clusters View, you can see the health status of your cluster and its nodes at a glance.
How to Check Node Health
The quick health check of your cluster’s nodes is displayed from the Clusters View. Next to the cluster name is a summary of your nodes’ statuses, indicating the total number of nodes and how many nodes are available.

How to Check Cluster Health
The overall health of the cluster is shown in the Health row of the cluster summary, showing the number of health checks passed.

Click checked passed to view a detailed view of the cluster’s health.
How to View a Cluster’s Health Checks
The cluster’s Health Check module displays the status of the following health checks:
- Access point availability check
- Distributed query check
- Zookeeper availability check
- Zookeeper contents check
- Readonly replica check
- Delayed inserts check
To view details on what queries are used to verify the health check, select the caret for each health check.

4.7.8 - Cluster Monitoring
Altinity.Cloud integrates Grafana into its monitoring tools. From a cluster, you can quickly access the following monitoring views:
- Cluster Metrics
- Queries
- Logs
How to Access Cluster Metrics
To access the metrics views for your cluster:
- From the Clusters view, select the cluster to monitor.
- From Monitoring, select the drop down View in Grafana and select from one of the following options:
- Cluster Metrics
- Queries
- Logs
- Each metric view opens in a separate tab.
Cluster Metrics
Cluster Metrics displays how the cluster is performing from a hardware and connection standpoint.

Some of the metrics displayed here include:
- DNS and Distributed Connection Errors: Displays the rate of any connection issues.
- Select Queries: The number of select queries submitted to the cluster.
- Zookeeper Transactions: The communications between the zookeeper nodes.
- ClickHouse Data Size on Disk: The total amount of data the ClickHouse database is using.
Queries
The Queries monitoring page displays the performance of clusters, including the top requests, queries that require the most memory, and other benchmarks. This can be useful in identifying queries that can cause performance issues and refactoring them to be more efficient.

Log Metrics
The Log monitoring page displays the logs for your clusters, and allows you to make queries directly on them. If there’s a specific detail you’re trying to iron out, the logs are the most granular way of tracking down those issues.

4.7.9 - Cluster Logs
Altinity.Cloud provides the cluster log details so users can track down specific issues or performance bottlenecks.
To access a cluster’s logs:
- From the Clusters view, select the cluster to for alerts.
- Select Logs.
- From the Log Page, you can display the number of rows to view, or filter logs by specific text.
- To download the logs, select the download icon in the upper right corner (A).
- To refresh the logs page, select the refresh icon (B).

The following logs are available:
- ACM Logs: These logs are specific to Altinity.Cloud issues and include the following:
- System Log: Details the system actions such as starting a cluster, updating endpoints, and other details.
- API Log: Displays updates to the API and activities.
- ClickHouse Logs: Displays the Common Log that stores ClickHouse related events. From this view a specific host can be selected form the dropdown box.
- Backup Logs: Displays backup events from the
clickhouse-backup
service. Log details per cluster host can be selected from the dropdown box. - Operator Logs: Displays logs from the Altinity Kubernetes Operator service, which is used to manage cluster replication cluster and communications in the Kubernetes environment.
4.7.10 - Cluster Explore Guide
Altinity.Cloud users a range of options they can take on existing clusters.
For a quick view on how to create a cluster, see the Altinity.Cloud Quick Start Guide. For more details on interacting with clusters, see the Administrative Clusters Guide.
4.7.10.1 - Query Tool
The Query Tool page allows users to submit ClickHouse SQL queries directly to the cluster or a specific cluster node.
To use the Query Tool:
-
Select Explore from either the Clusters View or the Clusters Detail Page.
-
Select Query from the top tab. This is the default view for the Explore page.
-
Select from the following:
-
Select which cluster to run a query against.
-
Select Run DDLs ON CLUSTER to run Distributed DDL Queries.
-
Select the following node options:
- Any: Any node selected from the Zookeeper parameters.
- All: Run the query against all nodes in the cluster.
- Node: Select a specific node to run the query against.
-
The Query History allows you to scroll through queries that have been executed.
-
Enter the query in the Query Textbox. For more information on ClickHouse SQL queries, see the SQL Reference page on ClickHouse.tech.
-
Select Execute to submit the query from the Query Textbox.
-
The results of the query will be displayed below the Execute button.
-
Additional tips and examples are listed on the Query page.
4.7.10.2 - Schema View
The Schema page allows you to view the databases, tables, and other details.
To access the Schema page:
-
Select Explore from either the Clusters View or the Clusters Detail Page.
-
Select Schema from the top tab.
-
Select the following node options:
- Any: Any node selected from the Zookeeper parameters.
- All: Run the query against all nodes in the cluster.
- Node: Select a specific node to run the query against.
To view details on a table, select the table name. The following details are displayed:
- Table Description: Details on the table’s database, engine, and other details.
- Table Schema: The
CREATE TABLE
command used to generate the table. - Sample Rows: A display of 5 selected rows from the table to give an example of the data contents.
4.7.10.3 - Processes
The Processes page displays the currently running processes on a cluster or node.
To view the processes page:
-
Select Explore from either the Clusters View or the Clusters Detail Page.
-
Select Processes from the top tab.
-
Select the following node options:
- Any: Any node selected from the Zookeeper parameters.
- All: Run the query against all nodes in the cluster.
- Node: Select a specific node to run the query against.
The following information is displayed:
- Query ID: The ClickHouse ID of the query.
- Query: The ClickHouse query that the process is running.
- Time: The elapsed time of the process.
- User: The ClickHouse user running the process.
- Client Address: The address of the client submitting the process.
- Action: Stop or restart a process.
4.8 - Notifications
Notifications allow you to see any messages related to your Altinity.Cloud account. For example: billing, service issues, etc.
To access your notifications:
-
From the upper right corner of the top navigation bar, select your user ID, then Notifications.
Notifications History
The Notifications History page shows the notifications for your account, including the following:
- Message: The notifications message.
- Level: The priority level which can be:
- Danger: Critical notifications that can effect your clusters or account.
- Warning: Notifications of possible issues that are less than critical.
- News: Notifications of general news and updates in Altinity.Cloud.
- Info: Updates for general information.
4.9 - System Status
The System Status page provides a quick view of whether the Altinity.Cloud services are currently up or down. This provides a quick glance to help devops staff determine where any issues may be when communicating with their Altinity.Cloud clusters.
To access tne System Status page:
-
Login to your Altinity.Cloud account.
-
From the upper right hand corner, select the Account icon, and select System Status.
System Status Page
The System Status page displays the status of the Altinity.Cloud services. To send a message to Altinity.Cloud support representatives, select Get in touch.
From the page the following information is displayed:

This sample is from a staging environment and cluster that was stopped and started to demonstrate how the uptime tracking system works.
- Whether all Altinity.Cloud services are online or if there are any issues.
- The status of services by product, with the uptime of the last 60 days shown as either green (the service was fully available that day), or red (the service suffered an issue). Hovering over a red bar will display how long the service was unavailable for the following services:
- ClickHouse clusters
- Ingress
- Management Console
Enter your email at the bottom of the page in the section marked Subscribe to status updates to receive notifications via email regarding any issues with Altinity.Cloud services.
4.10 - Uptime Schedule Settings
26 January 2023 · Read time 4 min
Overview
The Uptime Schedule settings are provided for non-critical servers that do not need to be running continuously. For non-running servers, Altinity.Cloud does not bill you for compute resources or support.
- Note that this cost-saving does not apply to storage and backups.
Available uptime schedules covered in this section include:
- ALWAYS ON - CPU always active
- STOP WHEN INACTIVE - CPU shuts off after set hours of inactivity
- ON SCHEDULE - Days of the week, set To and From times down to the minute
The Schedule (clock) icon indicates if a schedule has been set, and serves as a shortcut to quickly open the Uptime Schedule settings window. Other locations include:
- On the Altinity Cluster Manager cluster view, beside each cluster name (See Figure 1 item (A)
- Within the CONFIGURE > Uptime Schedule menu (See Figure 1 item (B)
- On the Dashboard tab of the cluster detail page.
WARNING: Do not use schedules on production clusters that must operate continuously.
UI path
From the Altinity Cloud Manager dashboard page, use the menu Configure > Uptime Schedule to display settings for your cluster.
- (A) The Schedule Icon
appears if STOP WHEN INACTIVE or ON SCHEDULE is set.
- (B) The CONFIGURE menu is how you get to the Uptime Schedule settings.
- (C) The Uptime Schedule settings are where you choose the uptime settings for your cluster and CONFIRM to save.
Figure 1 – Uptime Schedule located in the Configure menu. A clock icon shows in the cluster dashboard if a schedule is set
ALWAYS ON
Purpose
For mission-critical ClickHouse servers that must run 24/7.
Settings
There are no adjustable settings.
UI text
Altinity.Cloud shall not trigger any Stop or Resume operations on this Cluster automatically*
Figure 2 – ALWAYS ON Uptime Schedule setting.
Usage
To select ALWAYS ON from your cluster’s CONFIGURE > Uptime Schedule menu:
- Select ALWAYS ON.
- Select CONFIRM to save.
- Use CANCEL to close without saving.
Result
- Cluster Status shows nodes online as is shown in the following screenshot
Figure 3 – Cluster list view shows green nodes online.
STOP WHEN INACTIVE
Purpose
Used to turn off non-critical servers after a set number of hours of inactivity such as development environments that do not need to be running continuously. For non-running servers, Altinity.Cloud does not bill you for compute resources or support.
Settings
Hours of inactivity
Unit: Hours Example: 48
UI text
The cluster will be stopped automatically when there is no activity for a given amount of hours.
Figure 4 – STOP WHEN INACTIVE Uptime Schedule setting.
Usage
To set the hours after which your cluster becomes inactive, from your cluster’s CONFIGURE > Uptime Schedule menu:
- Select STOP WHEN INACTIVE.
- Adjust the Hours of inactivity integer value with the up or down arrows, or enter a number. (Example: 2)
- Select CONFIRM to save.
- Use CANCEL to close without saving.
Result
- In your cluster dashboard list view
, a clock icon appears beside your cluster name (Example: cluster-example
).
ON SCHEDULE
Purpose
Sets the daily To and From times (GMT format) that your cluster servers will be allowed to operate on a weekly schedule.
Settings
- Monday
- Tuesday
- Wednesday
- Thursday
- Friday
- Saturday
- Sunday
- 12:59 AM / PM (From and To) times
- Active (yes | no)
- All Day (yes | no)
Setting example
- Monday Active (yes) All Day (yes)
- Tuesday Active (yes) All Day (no) From 8:00 PM To 5:00 PM
- Wednesday Active (yes) All Day (yes)
- Thursday Active (yes) All Day (no) From 8:00 PM To 5:01 PM
- Friday Active (yes) All Day (yes)
- Saturday Active (no)
- Sunday Active (no)
The following cluster-example schedule sets Tuesday and Thursday for part-day operation from 8:00 PM to 5:00 PM, Monday, Wednesday, and Friday, for All Day operation, and for the weekend Saturday and Sunday, the server is off.
Figure 5 – ON SCHEDULE Uptime Schedule setting.
Usage
To set a schedule for a cluster to run, from your cluster’s CONFIGURE > Uptime Schedule menu:
- Select ON SCHEDULE.
- Select Active green (right) for on, grey (left) for off.
- Select All Day green (right) for on, grey (left) for off.
- Enter the From time (GMT HH:MM AM/PM) you want the cluster to be active.
- Enter the To stop time (GMT HH:MM AM/PM) you want the cluster to be off.
- Select CONFIRM to save.
- Use CANCEL to close without saving.
Result
- In your cluster dashboard list view
, a clock icon appears beside your cluster name (Example: cluster-example
).
5 - Administrator Guide
Altinity.Cloud allows administrators to manage clusters, users, and keep control of their ClickHouse environments with a few clicks. Monitoring tools are provided so you can keep track of everything in your environment to keep on top of your business.
5.1 - Access Control
Altinity.Cloud provides role based access control. Depending the role granted to an Altinity.Cloud Account, they can assign other Altinity.Cloud accounts roles and grant permissions to access organizations, environments, or clusters.
5.1.1 - Role-Based Access and Security Tiers
25 April 2023 · Read time 3 min
Introduction
Access to ClickHouse data hosted in Altinity.Cloud is controlled through a combination of security tiers and account roles. This allows companies to tailor access to data in a way that maximizes security while still allowing ease of access.
Security Tiers
Altinity.Cloud groups a set of clusters together in ways that allow companies to provide Accounts access only to the clusters or groups of clusters that they need.
Altinity.Cloud groups clusters into the following security-related tiers:
Hierarchy
- ClickHouse databases and tables live inside clusters.
- Clusters contain ClickHouse databases and manage access.
- Environments contain one or more clusters.
- Organization is the highest level that houses one or more environments.
Security Tier
Account access is controlled by assigning an account a single role and a security tier depending on their role.
A single account can be assigned to:
- A single Organization
- One or multiple Environments
- One or multiple Clusters within an environment
Account Roles
The actions that can be taken by Altinity.Cloud accounts are based on the role they are assigned.
The following roles and their actions based on the security tier are detailed in Table 1.
Role Descriptions
- orgadmin manages the Organization including all user accounts and Environment settings.
- envadmin within an Organization can edit assigned Environments and has full access to any cluster.
- envuser is a member of an Organization that has full access to specified clusters.
- billing can access billing page only, view invoices, and update payment details.
Organization Example
The following example in Table 2 shows an Organization called HappyDragon that shows how Accounts and Role assignments are configured. Role names are also shown in Figure 1. The account roles are tied into the security tiers and allow an account to access multiple environments and clusters depending on what type of tier they are assigned to.
Account | Title | Role | Organization | Accounts | Billing | Environments | Clusters |
---|---|---|---|---|---|---|---|
mary | Administrator | orgadmin | HappyDragon | all | all | Access to all Env. | all |
jessica | Operations | envadmin | HappyDragon | n/a | n/a | HappyDragon_Prod HappyDragon_Dev |
all |
peter | Developer | envadmin | HappyDragon | n/a | n/a | HappyDragon_Dev | all |
paul | Marketing | envuser | HappyDragon | marketing | n/a | HappyDragon_Prod | marketing |
Table 2 - Accounts and their roles and security tiers.
Account and Roles
Mary (Administrator, Role: orgadmin)
Mary is the orgadmin role, which has the highest level of access in this example.
- Has full access to the organization account
- Can create and manage access for other users
- Can create and manage new environments
- Can create and manage new clusters
Jessica (Operations, Role: envadmin)
- Has read access (but not write or delete access) to both Dev and Prod environments
- Has full access to read, write and delete clusters in both environments
Peter (Developer, Role: envadmin)
- Has read access (but not write or delete access) to the Dev environment
- Has full access to read, write and delete any cluster in the Dev environment
Paul (Marketing user, Role: envuser)
- Has read, write and delete access to the cluster marketing in the environment HappyDragon_Prod
5.1.2 - Account Management
Altinity.Cloud accounts with the role orgadmin are able to create new Altinity.Cloud accounts and associate them with organizations, environments, and one or more clusters depending on their role. For more information on roles, see Role Based Access and Security Tiers.
Account Page
The Account Page displays all accounts assigned to the same Organization and Environments as the logged in account.
For example: the accounts mario
, luigi
, and peach
and todd
are members of the organizations MushroomFactory
and BeanFactory
as follows:
Account | Role | Organization: MushroomFactory | Organization: BeanFactory |
---|---|---|---|
peach | orgadmin | * | |
mario | orgadmin | * | |
luigi | envuser | * | |
todd | envuser | * |
peach
will be able to see their account andtodd
in the Account Page, while accountsmario
andluigi
will be hidden from them.mario
will be able to see their account andluigi
.
Access Accounts
To access the accounts that are assigned to the same Organizations and Environments as the logged in user with the account role orgadmin:
- Login to Altinity.Cloud with an account granted the orgadmin role.
- From the left navigation panel, select Accounts.
- All accounts that are in the same Organizations and Environments as the logged in account will be displayed.
Account Details
Accounts have the following details that can be set by an account with the orgadmin role:
- Common Information:
- Name: The name of the account.
- Email (Required): The email address of the account. This will be used to login, reset passwords, notifications, and other uses. This must be a working email for these functions to work.
- Password: The password for the account. Once a user has authenticated to the account, they can change their password.
- Confirm Password: Confirm the password for the account.
- Role (Required): The role assigned to the account. For more information on roles, see Role Based Access and Security Tiers.
- Organization: The organization assigned to the account. Note that the
orgadmin
can only assign accounts the same organizations that theorgadmin
account also belongs to. - Suspended: When enabled, this prevents the account from logging into Altinity.Cloud.
- Environment Access:
- Select the environments that the account will require access to. Note that the
orgadmin
can only assign accounts the same environments that theorgadmin
account also belongs to.
- Select the environments that the account will require access to. Note that the
- Cluster Access:
- This is only visible if the Role is set to envuser. This allows one or more clusters in the environments the new account was assigned to in Environmental Access to be accessed by them.
- API Access:
- Allows the new account to make API calls from the listed domain names.
Account Actions
Create Account
orgadmin
accounts can create new accounts and assign them to the same organization and environments they are assigned to. For example, continuing the scenario from above, if account peach
is assigned to the organization MushroomFactory
and the environments MushroomProd
and MushroomDev
, they can assign new accounts to the organization MushroomFactory
, and to the environments MushroomProd
or MushroomDev
or both.
To create a new account:
-
Login to Altinity.Cloud with an account granted the orgadmin role.
-
From the left navigation panel, select Accounts.
-
Select Add Account.
-
Set the fields as listed in the Account Details section.
-
Once all settings are completed, select Save. The account will be able to login with the username and password, or if their email address is registered through Google, Auth0.
Edit Account
- Login to Altinity.Cloud with an account granted the orgadmin role.
- From the left navigation panel, select Accounts.
- From the left hand side of the Accounts table, select the menu icon for the account to update and select Edit.
- Update the fields as listed in the Account Details section.
- When finished, select Save.
Suspend Account
Instead of deleting an account, setting an account to Suspended may be more efficient to preserve the accounts name and other settings. A suspended account is unable to login to Altinity.Cloud. This includes directly logging through a browser and API calls made under the account.
To suspend or activate an account:
- Login to Altinity.Cloud with an account granted the orgadmin role.
- From the left navigation panel, select Accounts.
- From the left hand side of the Accounts table, select the menu icon for the account to update and select Edit.
- To suspend an account, toggle Suspended to on.
- To activate a suspended account, toggle Suspended to off.
- When finished, select Save.
Delete Account
Accounts can be deleted which removes all information on the account. Clusters and environments created by account will remain.
To delete an existing account:
- Login to Altinity.Cloud with an account granted the orgadmin role.
- From the left navigation panel, select Accounts.
- From the left hand side of the Accounts table, select the menu icon for the account to update and select Delete.
- Verify the account is to be deleted by selecting OK.
5.1.3 - Integrating Okta into the Altinity.Cloud login page
Overview - Okta Integration
Altinity uses Auth0 so that customers who are already logged into other identity providers such as Google or Okta are automatically granted access to Altinity.Cloud.
The following diagram shows the Altinity login process using Auth0, plus adding Okta as discussed on this page.
- Logging in to Altinity.Cloud using a Login Email and Password.
- The Auth0 login link to use a 3rd party authenticator such as Google or Okta. (See Okta/Auth0 Altinity Integration)
- Using Okta allows previously authorized logged-in employees to gain immediate access to Altinity.Cloud. (See Okta Customer Configuration)
Figure 1 – Altinity integration of an Okta customer to Auth0.
Okta Client Details
Contact Altinity to add the Okta domain and Client ID to the Altinity.Cloud access list. Please provide the following:
- The domain you want to sign in on the Okta side, e.g. somemail.com. Note: it should match your organization domain in Altinity.Cloud.
- Okta Domain, e.g. somemail.okta.com
- Okta Client ID
Okta/Auth0 Altinity Integration
These steps are for Altinity technical support to add an Okta connection to Auth0.
Setting up the Auth0 connection
- Go to Auth0 Dashboard -> Authentication -> Enterprise.
- Click Create (plus icon) next to OpenID Connect.
- Provide a name.
- Copy the Okta domain provided by a customer to Issuer URL.
- Copy the Client ID provided by a customer to the Client ID.
- Click Create.
Enabling the connection
- Go to Auth0 Dashboard -> Applications.
- Click the application you wish to use with the connection.
- Go to the Connections tab, find your newly created connection, and switch it on.
Testing the connection
- Go to Auth0 Dashboard -> Authentication -> Enterprise.
- Click OpenID Connect (not the plus sign, the text).
- Find the newly created connection.
- Click the three dots on the right -> Try.
- You should be greeted with an Okta password prompt, or if there is a problem, an error is shown.
- You should be greeted with an Okta password prompt, or if there is a problem, an error is shown.
Enabling the button
- Go to Auth0 Dashboard -> Authentication -> Enterprise.
- Click OpenID Connect (not the plus sign, the text).
- Find the newly created connection and click its name.
- Go to the Login Experience tab.
- Check the Connection button -> Display connection as a button.
- Configure the Button display name and logo URL.
- Click Save.
Testing
- Go to the https://acm.altinity.cloud login page.
- Click Sign in with Auth0.
- A button for the new connection should be shown.
- Upon clicking the button, it should either ask for Okta credentials or log straight into the app.
Altinity blog post
The following Altinity blog post provides an in-depth discussion of adding Okta as an identity provider.
5.1.4 - Altinity Access to ClickHouse
5 June 2023 · Read time 3 min
Introduction
Altinity Access settings allow Altinity.Cloud users to limit the level of access Altinity personnel have to customer ClickHouse data or administrative operations. Altinity.Cloud provides two types of limits:
- Data Access - Control the ability of Altinity personnel to view or change data in ClickHouse tables.
- Management Access - Control ability to change cluster configuration or perform administrative actions.
If you restrict access to data or management functions you may choose to lift them from time to time to allow Altinity support to diagnose problems or perform operations on your behalf. You can apply the restrictions again afterward.
Viewing and Changing Altinity Access Settings
Access the Cluster Dashboard view of any cluster. You will see the ALTINITY ACCESS button on the upper right-hand side of the dashboard view.
Button Colors
The color indicates the Altinity access level to ClickHouse data.
- Clear (shown) - Altinity personnel have no access to ClickHouse data.
- Green - Altinity personnel have read-only access to system tables.
- Orange - Altinity personnel have read-only access to all tables.
- Red - Altinity personnel have read/write access to all tables.
Access Level Settings
Press the ALTINITY ACCESS button to manage access settings.
You may change settings and press CONFIRM to apply or CANCEL to quit. Changing settings requires an account with EnvUser role or higher.
You may choose any data access level that you please. The following table shows the level of access for each.
Level | Meaning |
---|---|
No Access | Altinity personnel may not use the ACM Query Browser or Schema Browser. They cannot look at data or schema. |
System (Default) | Altinity personnel use the ACM Query browser to query system tables and may look at table definitions in the Schema Browser. This setting provides a good balance between protecting data and providing access required for quick support from Altinity. |
Read Only | In addition to the above, Altinity personnel may use the ACM Query Browser to run SELECT statements that read data from any table. |
Full Access | In addition to the above, Altinity personnel use the ACM Query Browser to run SQL statements that alter data. |
Management Access Settings
You may similarly enable or disable management access. The following sections describe the affected access levels.
Enable Cluster Configuration Management
Checking this box allows Altinity personnel to perform any of the following operations related to configuration.
- Changing cluster configuration settings.
- Changing users or profiles.
- Setting connection configuration.
- Altering backup settings.
- Setting uptime schedules.
- Setting alerts.
The above actions can cause your server to restart, alter user passwords, or change the information that you receive from Altinity.Cloud about your clusters. If the box is unchecked only you can make these changes.
Enable Cluster Actions
Checking this box allows Altinity staff to perform any of the following operations related to cluster administration.
- Creating new clusters.
- Rescaling clusters.
- Upgrading clusters.
- Restarting clusters.
The above actions may cause your server to restart, behave differently for applications, or affect operating costs. If the box is unchecked only you can make these changes.
5.2 - Altinity Backup Solutions
14 March 2023 · Read time 1 min
Overview
This section covers backup and restore options provided by the Altinity Cloud Manager.
Backups
- On-demand backups are provided in the cluster ACTIONS menu.
- Altinity supports 3rd-party external cloud provider remote backups such as Amazon or Google.
- New clusters created by the Cluster Launch Wizard are automatically backed up daily for 7 days.
- Create customized Altinity backup schedules.
Restoring Data
-
Restore a backup to a new cluster using the Cluster Launch Wizard.
-
Restore a cluster or table from a backups list.
-
Choose a specific day or on-demand snapshot to restore from.
Contact Altinity Support
5.3 - How to use Altinity Backup and the Restore Wizard
14 March 2023 · Read time 5 min
Overview
This section covers the Altinity Cloud Manager Cluster Restore Wizard, which is available from your cluster’s ACTIONS > Restore a Backup menu. This guide walks you through the steps to restore a cluster from an Altinity backup.
Create Backup
In addition to scheduled backups, an ad hoc backup feature is provided to create an on-demand snapshot. By manually creating a backup from the ACTIONS 》 Create Backup Backup, each backup request adds a Tag with a timestamp.
- Note that for ad hoc backups, there are no configuration options. A dialog box (Cluster Backup) displays to let you know the backup is in progress.
Figure 1 – Making an on-demand backup: the ACTIONS 》Create Backup and the confirmation window.
UI Text
- Cluster Backup The Backup procedure for the Cluster your-backup has been scheduled. It will require some time to finish the procedure. Note: Backup files are handled by ACM and stored separately from the cluster instances. These backup files will remain available even if you accidentally delete the cluster.
Backup Scheduling
To change the backup schedule from the 7 day default, bring up your cluster Environments settings, select the 3-dot menu icon beside your cluster, choose Edit then the Backups tab.
Figure 2 – Backup Schedule settings from the Environment > Cluster > Edit > Backup tab.
Restore a Backup
Prerequisites
- Login to the Altinity.Cloud Manager https://acm.altinity.cloud/clusters
- The backup operator has backup roles and permissions set up in My Account > Common Information > Role and Access Rights
- Accounts > Manage Roles > Account Role Details > Cluster Settings and NodeTypes are set to (Allow)
- The backup provider is Altinity or an external cloud provider
- The Organization list of account Names has been granted the role of allowing backups and restores to the listed Environments
NOTE: New users do not have the rights to perform manual backups and restore functions, so the default view of the Actions menu will not display the backup or restore options.
The following wizard screens are covered on this page:
- Backup Location
- Source Cluster
- Source Backup
- Destination Cluster
- Restore Summary
- Cluster Launch Wizard
The following illustration shows a summary of the various screens available in the Restore Wizard option.
- The Backup Location may be the Altinity.Cloud Backup or a Remote Backup of your choice of cloud provider.
- Colored orange, the Cluster Launch Wizard opens after you CONTINUE from the last screen of the Cluster Restore Wizard.
Figure 2 – Each of the 5 Restore Wizard screens and the available settings.
Clusters > Actions - Where to find the Restore Wizard
The ACTIONS menu contains the Restore a Backup function that starts the Cluster Restore Wizard within the Altinity.Cloud Connection Manager. The following screenshot shows the Altinity.Cloud Connection Manager dashboard screen for cluster-a, highlighting points of interest.
- The your-environment menu is the parent for your clusters.
- The Clusters in the left navigation pane let you know where you are in the ACM.
- The cluster-a is the name of the dashboard you are currently viewing.
- The Actions menu is where the Backup and Restore functions are found.
NOTE: If your account and roles are not set up, you will not see all of the items in the left-hand pane or all the items in the Actions menu.
Figure 3 – The dashboard view of cluster-a showing the selected environment and the ACTIONS menu.
ACTIONS menu - Backup and Restore
From your cluster dashboard, the ACTIONS menu lists the Restore a Backup setting.
Figure 4 – The ACTIONS menu shows the Restore a Backup setting.
Running the Cluster Restore Wizard
From the Altinity Cloud Manager cluster screen select ACTIONS > Restore a Backup to open the Cluster Restore Wizard. The
Features of the interface shown in Figure 4:
- The left side of each Cluster Restore Wizard screen shows the progress of the restore operation.
- The green bar indicates the section of the wizard you are viewing.
- The dimmed choices indicate you have not yet set anything in those screens.
- After progressing through the wizard screens, you can return to a previous screen by clicking on any of the 5 names of the screens shown in the left pane.
Buttons located at the bottom right include:
- CANCEL - Closes the Wizard without saving any settings.
- NEXT - Indicates that there is another screen that you will go to.
- BACK - Returns to the previous screen while retaining any changes you have made.
- CONTINUE - Appears on the last screen of the wizard. Click to start the Cluster Launch Wizard.
- The left pane titles are also buttons that allow you to jump directly to without using the BACK button.
1. Backup Location
This screen lets you choose where your backups are located, either from Altinity or from your own cloud provider.
- Altinity.Cloud Backup
- Remote Backup (AWS or GCP)
Backup Location Information
- This Backup Location information screen is used to choose between an Altinity backup or an external cloud vendor.
Altinity.Cloud Backup
To use Altinity as the source of the cluster you want to restore:
- Select Altinity.Cloud Backup from the Backup Location Information.
- Select an Altinity environment from the Source Environment menu, for example, tenant-a.
- Select NEXT to go to the next screen Source Cluster.
Figure 5 – The Backup Location Information screen, selecting the Altinity.Cloud Backup and the Source Environment (for example: tenant-a).
Remote Backup
Use this selection if you are using a third-party cloud provider such as Amazon (AWS) or Google (GCP). Select Remote Backup, fill in the fields then NEXT.
- Select Remote Backup, fill in the following fields from steps 2 to 7 then NEXT.
Figure 6 – The Altinity Cloud Manager (ACM) home page, selecting the LAUNCH CLUSTER button.
-
Select an Altinity-supported cloud provider:
Cloud Storage Provider
-
Copy the AWS or GCP Access Key and paste it here:
Access Key- UI Text: Storage Access Key
- Example:
EXAMPLE_KEY_ID_ABCDEFGH
- Copy the AWS or GCP Secret Key and paste it here:
Secret Key- UI Text: Storage Secret Key
- Example:
EXAMPLE_SECRET_ACCESS_KEY_ID_ABCDEFGH
- Enter the Region identifier string ID here:
Region- UI Text: Storage Region string ID (For “US West (Oregon)” the ID is us-west-2 )
- Example:
us-west-2
More information:
- Enter the Bucket name:
Bucket- UI Text: Storage Bucket
- Example:
valid.Storage-name_buck3t
More information:
- Select ACM (Altinity Cloud Manager) if you want to retain this folder structure:
ACM Compatible Folder Structure- UI Text: Bucket contents was previously created by ACM or has a fully ACM-compatible structure
- Example:
(checked)
- Select NEXT to go to the next screen Source Cluster.
2. Source Cluster
The Source Cluster Information screen lets you choose one cluster from a list of cluster names. The following column names appear in a scrolling table:
- Radio button - Marks the cluster you want to use as the source. (Example: selected)
- Cluster - This is the name of the backed-up cluster. (Example: abc)
- Namespace - This is the environment name. (Example: tenant-a)
- Configuration - Checked if the configuration information is included in the backup (Example: checked)
To select a cluster name:
-
In the Source Cluster Information scrolling table, select the radio button of the Cluster name.
Source Cluster Information- UI Text: Note: It is possible to restore a complete Cluster’s configuration only if a given backup contains it.
- Example: abc
-
Select NEXT to go to the next screen Source Backup.
Figure 7 – The restore wizard screen 2 of 5 Source Cluster Information showing the selected cluster abc.
3. Source Backup (Backup Tag)
The Backup Information: <environment name>/<cluster name> screen lists the available backups by date. Note that the environment name (example tenant-a) and cluster name (example: abc) were selected in the previous wizard screens.
The following column names appear in a scrolling table:
- Radio button - Marks the backup Tag name you want to use.
- Tag - This is the 14-digit name of the backed-up cluster that is the year yyyy month mm day dd time hhmmss (Example: 20230104201700)
- Size - This is the size of the backup. (Example: 450 B)
- Timestamp - The date and time of the backup (Example: 2023-01-04-20:17:00)
- Configuration - Checked if the configuration information is included in the backup (Example: checked)
To select a backup:
-
In the screen Backup Information: tenant-a/abc select the radio button by the Tag name. Example: Tag: 20230104201700
-
Select NEXT to go to the next screen Destination Cluster.
Figure 8 – The wizard restore wizard screen 3 of 5 Backup Information showing a Tag backup selected.
4. Destination Cluster
The Destination Cluster Information screen is where the restored data is saved to.
Available options are:
- Launch a new Cluster
- Launch a new Cluster using configuration and settings of a source cluster
- Restore into an existing cluster
- A new cluster will be launched using a fresh setup (it may be different from the original Cluster configuration)
Launch a new Cluster
The Launch of a new cluster runs the Cluster Launch Wizard immediately after the Review & Confirm screen appears and you select CONTINUE.
Select Launch a new cluster then NEXT to advance to Restore Summary.
Launch a new Cluster using the configuration and settings of a source cluster
Use this setting if you want to override the backed-up cluster settings such as CPU, RAM, and Storage size to instead use the destination cluster values.
The Launch a New Cluster runs the Cluster Launch Wizard immediately after the Review & Confirm screen appears and you select CONTINUE.
Select Launch a new cluster then NEXT to advance to Restore Summary.
Launch a new Cluster
In the Name field, create a new name.
- Example: restored-cluster-backup
Source Cluster
Ignores the backed-up settings and instead uses the settings in the destination cluster. This is useful when you want to ignore the settings of the existing cluster and instead use the backed-up configuration.
Existing Cluster
This is the opposite of the Source Cluster. This is useful when you want to use the settings of the existing cluster and not the backed-up configuration.
Figure 9 – The restore wizard screen 4 of 5 Destination Cluster Information with Launch a new Cluster selected.
5. Restore Summary
This Review & Confirm screen covers communication details such as port settings and endpoint information. To change a setting, select BACK or the title of the screen from the left-hand pane. Select CONTINUE to save and begin the restore process. IMPORTANT: Do not perform any changes to the restored cluster until the process is complete
UI Text: Please review and confirm the selected options:
- Backup Location: (example) Altinity.Cloud backup from this environment
- Source Cluster: (example) tenant-a/abc
- Backup Tag: (example) 0230104201700 (size: 450 B )
- Destination Cluster: (example) new-cluster
- Name〈cluster name〉: (example) restored-clustr (15-character limit)
Figure 10 – The last restore wizard screen 5 of 5 Review & Confirm.
Cluster Launch Wizard
The Cluster Launch Wizard starts automatically after selecting CONTINUE from the Cluster Restore Wizard.
From that point, follow the instructions to create a cluster to restore to.
Figure 11 – The Cluster Launch Wizard appears after you select CONTINUE from the Cluster Restore Wizard.
6 - Connectivity
The following guides are designed to help organizations connect their existing services to Altinity.Cloud.
6.1 - Cluster Access Point
ClickHouse clusters created in Altinity.Cloud can be accessed through the Access Point. The Access Point is configured by the name of your cluster and environment it is hosted in.
Information on the Access Point is displayed from the Clusters View. Clusters with TLS Enabled will display a green shield icon.
View Cluster Access Point
To view your cluster’s access point:
- From the Clusters View, select Access Point.
- The Access Point details will be displayed.

Access Point Details
The Access Point module displays the following details:
-
Host: The dns host name of the cluster, based on the name of the cluster and environment the cluster is hosted in.
-
TCP Port: The ClickHouse TCP port for the cluster.
-
HTTP Point: The HTTP port used for the cluster.
-
Client Connections: The client connections are quick commands you can copy and paste into your terminal or use in your code. This make it a snap to have your code connecting to your cluster by copying the details right from your cluster’s Access Point. Provided client includes are:
- clickhouse-client
jdbc
https
python
6.2 - Configure Cluster Connections
Altinity.Cloud provides accounts the ability to customize their connections to their clusters. This allows organizations the ability to enable or disable:
- The Binary Protocol: The native ClickHouse client secure port on port
9440
. - The HTTP Protocol: The HTTPS protocol on port
8443
. - IP Restrictions: Restricts ClickHouse client connections to the provided whitelist. The IP addresses must be listed in CIDR format. For example,
ip_address1,ip_address2,etc
.
Notice
IP addresses required for the functionality of Altinity.Cloud services to the cluster will be automatically included in the IP Restrictions list.As of this time, accounts can update the IP Restrictions section. Binary Protocol and HTTP Protocol are enabled by default and can not be disabled.
Update Connection Configuration
To update the cluster’s Connection Configuration:
-
Log into Altinity.Cloud with an account.
-
Select the cluster to update.
-
From the top menu, select Configure->Connections.
-
To restrict IP communication only to a set of whitelisted IP addresses:
-
Under IP Restrictions, select Enabled.
-
Enter a list of IP addresses. These can be separated by comma, spaces, or a new line. The following examples are all equivalent:
192.168.1.1,192.168.1.2 192.168.1.1 192.168.1.2 192.168.1.1 192.168.1.2
-
-
When finished, select Confirm to save the Connection Configuration settings.
6.3 - Connecting with DBeaver
Connecting to Altinity.Cloud from DBeaver is a quick, secure process thanks to the available JDBC driver plugin.
Required Settings
The following settings are required for the driver connection:
- hostname: The DNS name of the Altinity.Cloud cluster. This is typically based on the name of your cluster, environment, and organization. For example, if the organization name is
CameraCo
and the environment isprod
with the clustersales
, then the URL may behttps://sales.prod.cameraco.altinity.cloud
. Check the cluster’s Access Point to verify the DNS name of the cluster. - port: The port to connect to. For Altinity.Cloud, it will be HTTPS on port
8443
. - Username: The ClickHouse user to authenticate to the ClickHouse server.
- Password: The ClickHouse user password used to authenticate to the ClickHouse server.
Example
The following example is based on connecting to the Altinity.Cloud public demo database, with the following settings:
- Server:
github.demo.trial.altinity.cloud
- Port:
8443
- Database:
default
- Username:
demo
- Password:
demo
- Secure:
yes
DBeaver Example
-
Start DBeaver and select Database->New Database Connection.
-
Select All, then in the search bar enter
ClickHouse
. -
Select the ClickHouse icon in the “Connect to a database” screen.
-
Enter the following settings:
- Host:
github.demo.trial.altinity.cloud
- Port:
8443
- Database:
default
- User:
demo
- Password:
demo
- Host:
-
Select the Driver Properties tab. If prompted, download the ClickHouse JDBC driver.
-
Scroll down to the ssl property. Change the value to
true
. -
Press the Test Connection button. You should see a successful connection message.
6.4 - clickhouse-client
clickhouse-client
.The ClickHouse Client is a command line based program that will be familiar to SQL based users. For more information on clickhouse-client
, see the ClickHouse Documentation Command-Line Client page.
The access points for your Altinity.Cloud ClickHouse cluster can be viewed through the Cluster Access Point.
How to Setup clickhouse-client for Altinity.Cloud in Linux
As of this document’s publication, version 20.13 and above of the ClickHouse client is required to connect with the SNI enabled clusters. These instructions use the testing version of that client. An updated official stable build is expected to be released soon.
sudo apt-get install apt-transport-https ca-certificates dirmngr
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv E0C56BD4
echo "deb https://repo.clickhouse.tech/deb/testing/ main/" | sudo tee \
/etc/apt/sources.list.d/clickhouse.list
sudo apt-get update
sudo apt-get install -y clickhouse-client
Connect With clickhouse-client to a Altinity.Cloud Cluster
If your ClickHouse client is ready, then you can copy and paste your connection settings into your favorite terminal program, and you’ll be connected.

6.5 - Amazon VPC Endpoint
Altinity.Cloud users can connect a VPC (Virtual Private Cloud) Endpoint from existing AWS environments to their Altinity.Cloud environment. The VPC Endpoint becomes a private connection between their existing Amazon services and Altinity.Cloud, without exposing the connection to the Internet.
The following instructions are based on using the AWS console. Examples of the Terraform equivalent settings are included.
Requirements
Altinity.Cloud requires the AWS ID for the account that will be linked to the Altinity.Cloud environment. This can be found when you login to your AWS Console, and select your username from the upper right hand corner:

Instructions
To create an VPC Endpoint, the following general steps are required:
- Retrieve Your Altinity.Cloud Environment URL.
- Request an Endpoint Service Name from Altinity.Cloud.
- Create a VPC Endpoint. This must be in the same region as the service to be connected to.
- Create a private Route 53 Hosted Zone to internal.{Altinity.Cloud environment name}.altinity.cloud.
- Create a CNAME that points to the VPC Endpoint.
Retrieve Your Altinity.Cloud Environment URL
Your AWS service will be connected to the URL for your Altinity.Cloud environment. Typically this will be the name of your environment, followed by internal.{Altinity.Cloud environment name}.altinity.cloud
. For example: if your environment is named trafficanalysis
, then your environment URL will be internal.trafficanalysis.altinity.cloud
.
This may differ depending on your type of service. If you have any questions, please contact your Altinity Support representative.
Request an Endpoint Service Name
Before creating a VPC Endpoint, Altinity.Cloud will need to provide you a AWS Service Name that will be used for your Endpoint. To request your AWS Service Name to use in later steps of creating the VPC Endpoint to Altinity.Cloud:
-
Login to your AWS console and retrieve your AWS ID.
-
Contact your Altinity.Cloud support representative and inform them that you want to set up a VPC Endpoint to your Altinity.Cloud environment. They will require your AWS ID.
-
Your Altinity.Cloud support representative will process your request, and return your AWS Service Name to you. Store this in a secure location for your records.
Create a VPC Endpoint
The next step in connecting Altinity.Cloud to the existing AWS Service is to create an Endpoint.
-
From the AWS Virtual Private Cloud console, select Endpoints > Create Endpoint.
-
Set the following:
- Service Category: Set to Find service by name. (1)
- Service Name: Enter the Service Name (2) provided in the step Create Service Name, then select Verify. (3)
-
Select the VPC from the dropdown.
-
Select Create Endpoint.
Terraform VPC Endpoint Configuration
resource "aws_vpc_endpoint" "this" {
service_name = local.service_name,
vpc_endpoint_type = "Interface",
vpc_id = aws_vpc.this.id,
subnet_ids = [aws_subnet.this.id],
security_group_ids = [aws_vpc.this.default_security_group_id],
private_dns_enabled = false,
tags = local.tags
}
Create Route 53 Hosted Zone
To create the Route 53 Hosted Zone for the newly created endpoint:
-
From the AWS Console, select Endpoints.
-
Select the Endpoint to connect to Altinity.Cloud, then the tab Details. In the section marked DNS names, select the DNS entry created and copy it. Store this in a separate location until ready.
-
Enter the Route 53 console, and select Hosted zones.
-
Select Create hosted zone.
-
On the Hosted zone configuration page, update the following:
- Domain name: Enter the URL of the Altinity.Cloud environment. Recall this will be
internal.{Altinity.Cloud environment name}.altinity.cloud
, where {your environment name} was determined in the step Retrieve Your Altinity.Cloud Environment URL. - Description (optional): Enter a description of the hosted zone.
- Type: Set to Private hosted zone.
- Domain name: Enter the URL of the Altinity.Cloud environment. Recall this will be
-
In VPCs to associated with the hosted zone, set the following:
- Region: Select the region for the VPC to use.
- VPC ID: Enter the ID of the VPC that is being used.
-
Verify the information is correct, then select Create hosted zone.
Terraform Route 53 Configuration
resource "aws_route53_zone" "this" {
name = "$internal.{environment_name}.altinity.cloud.",
vpc {
vpc_id = aws_vpc.this.id
}
tags = local.tags
}
Create CNAME for VPC Endpoint
Once the Hosted Zone that will be used to connect the VPC to Altinity.Cloud has been created, the CNAME for the VPC Endpoint can be configured through the following process:
-
From the AWS Console, select Route 53 > Hosted Zones, then select Create record.
-
Select the Hosted Zone that will be used for the VPC connection. This will be the internal.{Altinity.Cloud environment name}.altinity.cloud.
-
Select Create record.
-
From Choose routing policy select Simple routing, then select Next.
-
From Configure records, select Define simple record.
-
From Define simple record, update the following:
- Record name: set to
*
. (1) - Value/Route traffic to:
- Select Ip address or another value depending on the record type. (3)
- Enter the DNS name for the Endpoint created in Create Route 53 Hosted Zone.
- Record type
- Select CNAME (2).
- Record name: set to
-
Verify the information is correct, then select Define simple record.
Terraform CNAME Configuration
resource "aws_route53_record" "this" {
zone_id = aws_route53_zone.this.zone_id,
name = "*.${aws_route53_zone.this.name}",
type = "CNAME",
ttl = 300,
records = [aws_vpc_endpoint.this.dns_entry[0]["dns_name"]]
}
Test
To verify the VPC Endpoint works, launch a EC2 instance and execute the following curl
command, and will return OK
if successful. Use the name of your Altinity.Cloud environment’s host name in place of {your environment name here}:
curl -sS https://statuscheck.{your environment name here}
OK
For example, if your environment is internal.trafficanalysis.altinity.cloud
, then use:
curl -sS https://statuscheck.internal.trafficanalysis.altinity.cloud
OK
References
6.6 - Amazon VPC Endpoint for Amazon MSK
Altinity.Cloud users can connect a VPC (Virtual Private Cloud) Endpoint service from their existing AWS (Amazon Web Services) MSK (Amazon Managed Streaming for Apache Kafka) environments to their Altinity.Cloud environment. The VPC Endpoint services become a private connection between their existing Amazon services and Altinity.Cloud, without exposing Amazon MSK to the Internet.
The following instructions are based on using the AWS console. Examples of the Terraform equivalent settings are included.
Requirements
- Amazon MSK
- Provision Broker mapping.
Instructions
To create an VPC Endpoint Service, the following general steps are required:
- Contact your Altinity Support representative to retrieve the Altinity.Cloud AWS Account ID.
- Create VPC Endpoint Services: For each broker in the Amazon MSK cluster, provision a VPC endpoint service in the same region your Amazon MSK cluster. For more information, see the Amazon AWS service endpoints documentation.
- Configure each endpoint service to a Kafka broker. For example:
- Endpoint Service:
com.amazonaws.vpce.us-east-1.vpce-svc-aaa
- Kafka broker:
b-0.xxx.yyy.zzz.kafka.us-east-1.amazonaws.com
- Endpoint service provision settings: Set
com.amazonaws.vpce.us-east-1.vpce-svc-aaa
=b-0.xxx.yyy.zzz.kafka.us-east-1.amazonaws.com
- Endpoint Service:
- Provide Endpoint Services and MSK Broker mappings to your Altinity Support representative.
Create VPC Endpoint Services
To create the VPC Endpoint Service that connects your Altinity.Cloud environment to your Amazon MSK service:
-
From the AWS Virtual Private Cloud console, select Endpoints Services > Create Endpoint Service.
-
Set the following:
- Name: Enter a Name of you own choice (A).
- Load balancer type: Set to Network. (B)
- Available load balancers: Set to the load balancer you provisioned for this broker. (C)
- Additional settings:
- If you are required to manually accept the endpoint, set Acceptence Required to Enabled (D).
- Otherwise, leave Acceptance Required unchecked.
-
Select Create.
Test
To verify the VPC Endpoint Service works, please contact your Altinity Support representative.