You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/en/about-us/cloud.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,6 +25,6 @@ Some of the benefits of using ClickHouse Cloud are described below:
25
25
26
26
Clickhouse Cloud continuously upgrades your service to a newer version. After publishing a core database version in the open source, we do additional validation in our cloud staging environment, which typically takes 6-8 weeks before rolling out to production. The rollout is phased out by cloud service provider, service type, and region.
27
27
28
-
We offer a "Fast" Release Channel for subscribing to updates ahead of the regular release schedule. Access to early upgrades is recommended only for non-production environments and can be requested by logging a support ticket.
28
+
We offer a "Fast" Release Channel for subscribing to updates ahead of the regular release schedule. For more details, see ["Fast Release Channel"](../cloud/manage/upgrades.md/#fast-release-channel-early-upgrades).
29
29
30
30
If you rely on functionality in the earlier version, you can, in some cases, revert to the previous behavior using your service's compatibility setting.
Copy file name to clipboardExpand all lines: docs/en/cloud/get-started/cloud-quick-start.md
+17-15Lines changed: 17 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -89,7 +89,7 @@ That's it - you are ready to start using your new ClickHouse service!
89
89
90
90
## 3. Create a database and table
91
91
92
-
Like most database management systems, ClickHouse logically groups tables into **databases**. Use the `CREATE DATABASE` command to create a new database in ClickHouse:
92
+
Like most database management systems, ClickHouse logically groups tables into **databases**. Use the [`CREATE DATABASE`](../../sql-reference/statements/create/database.md) command to create a new database in ClickHouse:
93
93
94
94
```sql
95
95
CREATEDATABASEIF NOT EXISTS helloworld
@@ -109,20 +109,20 @@ ENGINE = MergeTree()
109
109
PRIMARY KEY (user_id, timestamp)
110
110
```
111
111
112
-
In the example above, `my_first_table` is a MergeTree table with four columns:
112
+
In the example above, `my_first_table` is a [`MergeTree`](../../engines/table-engines/mergetree-family/mergetree.md) table with four columns:
113
113
114
-
-`user_id`: a 32-bit unsigned integer
115
-
-`message`: a String data type, which replaces types like VARCHAR, BLOB, CLOB and others from other database systems
116
-
-`timestamp`: a DateTime value, which represents an instant in time
117
-
-`metric`: a 32-bit floating point number
114
+
-`user_id`: a 32-bit unsigned integer ([UInt32](../../sql-reference/data-types/int-uint.md))
115
+
-`message`: a [String](../../sql-reference/data-types/string.md) data type, which replaces types like `VARCHAR`, `BLOB`, `CLOB` and others from other database systems
116
+
-`timestamp`: a [DateTime](../../sql-reference/data-types/datetime.md) value, which represents an instant in time
117
+
-`metric`: a 32-bit floating point number ([Float32](../../sql-reference/data-types/float.md))
118
118
119
-
:::note table engines
120
-
The table engine determines:
121
-
- How and where the data is stored
119
+
:::note Table engines
120
+
Table engines determine:
121
+
- How and where data is stored
122
122
- Which queries are supported
123
123
- Whether or not the data is replicated
124
-
125
-
There are many engines to choose from, but for a simple table on a single-node ClickHouse server, [MergeTree](/en/engines/table-engines/mergetree-family/mergetree.md) is your likely choice.
124
+
<br/>
125
+
There are many table engines to choose from, but for a simple table on a single-node ClickHouse server, [`MergeTree`](/en/engines/table-engines/mergetree-family/mergetree.md) is your likely choice.
126
126
:::
127
127
128
128
### 3a. A Brief Intro to Primary Keys
@@ -143,9 +143,11 @@ then the key becomes the tuple specified in the `ORDER BY` clause. If you specif
143
143
The primary key is also the sorting key, which is a tuple of `(user_id, timestamp)`. Therefore, the data stored in each
144
144
column file will be sorted by `user_id`, then `timestamp`.
145
145
146
+
For a deep dive into core ClickHouse concepts, see ["Core Concepts"](../../managing-data/core-concepts/index.md).
147
+
146
148
## 4. Insert Data
147
149
148
-
You can use the familiar `INSERT INTO TABLE` command with ClickHouse, but it is important to understand that each insert into a `MergeTree` table causes a **part** to be created in storage.
150
+
You can use the familiar [`INSERT INTO TABLE`](../../sql-reference/statements/insert-into.md) command with ClickHouse, but it is important to understand that each insert into a [`MergeTree`](/en/engines/table-engines/mergetree-family/mergetree.md) table causes a **part** to be created in storage.
149
151
150
152
:::tip ClickHouse best practice
151
153
Insert a large number of rows per batch - tens of thousands or even millions of
Notice the `timestamp` column is populated using various **Date** and **DateTime** functions. ClickHouse has hundreds of useful functions that you can [view in the **Functions** section](/docs/en/sql-reference/functions/).
170
+
Notice the `timestamp` column is populated using various [**Date**](../../sql-reference/data-types/date.md) and [**DateTime**](../../sql-reference/data-types/datetime.md) functions. ClickHouse has hundreds of useful functions that you can [view in the **Functions** section](/docs/en/sql-reference/functions/).
169
171
:::
170
172
171
173
Let's verify it worked:
@@ -223,7 +225,7 @@ Notice the response comes back in a nice table format:
223
225
4 rows in set. Elapsed: 0.008 sec.
224
226
```
225
227
226
-
4. Add a `FORMAT` clause to specify one of the [many supported output formats of ClickHouse](/en/interfaces/formats/):
228
+
4. Add a [`FORMAT`](../../sql-reference/statements/select/format.md) clause to specify one of the [many supported output formats of ClickHouse](/en/interfaces/formats/):
227
229
228
230
<br/>
229
231
@@ -261,7 +263,7 @@ the timestamp of the event.
261
263
262
264
Suppose we have the following text in a CSV file named `data.csv`:
263
265
264
-
```bash
266
+
```bash title="data.csv"
265
267
102,This is data in a file,2022-02-22 10:43:28,123.45
266
268
101,It is comma-separated,2022-02-23 00:00:00,456.78
267
269
103,Use FORMAT to specify the format,2022-02-21 10:43:30,678.90
Copy file name to clipboardExpand all lines: docs/en/cloud/get-started/sql-console.md
+6-2Lines changed: 6 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -42,11 +42,15 @@ The Cell Inspector tool can be used to view large amounts of data contained with
42
42
43
43
### Sorting a table
44
44
45
-
To sort a table in the SQL console, open a table and select the ‘Sort’ button in the toolbar. This button will open a menu that will allow you to configure your sort. You can choose a column by which to sort and configure the ordering of the sort (ascending or descending). Select ‘Apply’ or press Enter to sort your table
45
+
To sort a table in the SQL console, open a table and select the ‘Sort’ button in the toolbar. This button will open a menu that will allow you to configure your sort. You can choose a column by which you want to sort and configure the ordering of the sort (ascending or descending). Select ‘Apply’ or press Enter to sort your table
46
46
47
47

48
48
49
-
The SQL console also allows you to add multiple sorts to a table. Click the ‘Sort’ button again to add another sort. Note: sorts are applied in the order that they appear in the sort pane (top to bottom). To remove a sort, simply click the ‘x’ button next to the sort.
49
+
The SQL console also allows you to add multiple sorts to a table. Click the ‘Sort’ button again to add another sort.
50
+
51
+
:::note
52
+
Sorts are applied in the order that they appear in the sort pane (top to bottom). To remove a sort, simply click the ‘x’ button next to the sort.
Copy file name to clipboardExpand all lines: docs/en/cloud/manage/backups.md
+20-21Lines changed: 20 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,7 @@ ClickHouse Cloud backups are a combination of "full" and "incremental" backups t
18
18
19
19
In the screenshot below, the solid line squares show full backups and the dotted line squares show incremental backups. The solid line rectangle around the squares denotes the retention period and the backups that are visible to the end user, which can be used for a backup restore. In the scenario below, backups are being taken every 24 hours and are retained for 2 days.
20
20
21
-
On Day 1, a full backup is taken to start the backup chain. On Day 2, an incremental backup is taken and now we have a full and incremental backup available to restore from. By Day 7, we have one full backup and six incremental backups in the chain, with the most recent two incremental backups visible to the user. On Day 8, we take a new full backup, and on Day 9, once we have two backups in the new chain, the previous chain is discarded.
21
+
On Day 1, a full backup is taken to start the backup chain. On Day 2, an incremental backup is taken, and we now have a full and incremental backup available to restore from. By Day 7, we have one full backup and six incremental backups in the chain, with the most recent two incremental backups visible to the user. On Day 8, we take a new full backup, and on Day 9, once we have two backups in the new chain, the previous chain is discarded.
22
22
23
23

24
24
@@ -32,13 +32,13 @@ No free backups are included in the new pricing.
ClickHouse Cloud allows you to configure the schedule for your backups for **Scale** and **Enterprise** tier services. Backups can be configured along the following dimensions based on your business needs.
38
38
39
-
-**Retention**: Duration in days, for which each backup will be retained. Retention can be specified as low as 1 day, and as high as 30 days with several values to pick in between.
40
-
-**Frequency**: Frequency allows you to specify the time duration between subsequent backups. For instance, a frequency of "every 12 hours" means that backups will be spaced 12 hours apart. Frequency can range from "every 6 hours" to "every 48 hours" in the following hourly increments: 6, 8, 12, 16, 20, 24, 36, 48.
41
-
-**Start Time**: Start time for when you want to schedule backups each day. Specifying a start time implies that the backup "Frequency" will default to once every 24 hours. Clickhouse Cloud will start the backup within an hour of the specified start time.
39
+
-**Retention**: The duration of days, for which each backup will be retained. Retention can be specified as low as 1 day, and as high as 30 days with several values to pick in between.
40
+
-**Frequency**: The frequency allows you to specify the time duration between subsequent backups. For instance, a frequency of "every 12 hours" means that backups will be spaced 12 hours apart. Frequency can range from "every 6 hours" to "every 48 hours" in the following hourly increments: `6`, `8`, `12`, `16`, `20`, `24`, `36`, `48`.
41
+
-**Start Time**: The start time for when you want to schedule backups each day. Specifying a start time implies that the backup "Frequency" will default to once every 24 hours. Clickhouse Cloud will start the backup within an hour of the specified start time.
42
42
43
43
:::note
44
44
The custom schedule will override the default backup policy in ClickHouse Cloud for your given service.
@@ -51,7 +51,7 @@ To configure the backup schedule for a service, go to the **Settings** tab in th
51
51
</div>
52
52
<br/>
53
53
54
-
This opens a slideout where you can choose values for retention, frequency, and start time. You will need to save the chosen settings for them to take effect.
54
+
This opens a tab to the right where you can choose values for retention, frequency, and start time. You will need to save the chosen settings for them to take effect.
55
55
56
56
<divclass="eighty-percent">
57
57

@@ -63,12 +63,12 @@ Start time and frequency are mutually exclusive. Start time takes precedence.
63
63
:::
64
64
65
65
:::note
66
-
Changing the backups schedule can cause higher monthly charges for storage as some of the backups might not be covered in the default backups for the service. See “Understanding backup cost” section below.
66
+
Changing the backup schedule can cause higher monthly charges for storage as some of the backups might not be covered in the default backups for the service. See [“Understanding backup cost”](#understanding-backup-cost) section below.
67
67
:::
68
68
69
69
## Backup status list
70
70
71
-
Your service will be backed up based on the set schedule - whether it is the default daily schedule or a custom schedule picked by you. All available backups can be viewed from the **Backups** tab of the service. From here, you can see the status of the backup, the duration, as well as the size of the backup. You can also restore a specific backup using the **Actions** column.
71
+
Your service will be backed up based on the set schedule, whether it is the default daily schedule or a custom schedule picked by you. All available backups can be viewed from the **Backups** tab of the service. From here, you can see the status of the backup, the duration, as well as the size of the backup. You can also restore a specific backup using the **Actions** column.
72
72
73
73

74
74
@@ -81,17 +81,17 @@ To understand the backup cost, you can view the backup cost per service from the
81
81

82
82
83
83
Estimating the total cost for your backups requires you to set a schedule. We are also working on updating our [pricing calculator](https://clickhouse.com/pricing), so you can get a monthly cost estimate before setting a schedule. You will need to provide the following inputs in order to estimate the cost:
84
-
- Size of full and incremental backups
84
+
- Size of the full and incremental backups
85
85
- Desired frequency
86
86
- Desired retention
87
87
- Cloud provider and region
88
88
89
89
:::note
90
-
Keep in mind that the estimated cost for backups will change as the size of the data in the service changes (grows) over time.
90
+
Keep in mind that the estimated cost for backups will change as the size of the data in the service grows over time.
91
91
:::
92
92
93
93
94
-
## Restore a backup
94
+
## Restore a backup
95
95
96
96
Backups are restored to a new ClickHouse Cloud service, not to the existing service from which the backup was taken.
97
97
@@ -108,7 +108,7 @@ The new service will show in the services list as `Provisioning` until it is rea
108
108
109
109
## Working with your restored service
110
110
111
-
After a backup has been restored, you will now have two similar services: the **original service** that needed to be restored, and a new **restored service** that was restored from a backup of the original.
111
+
After a backup has been restored, you will now have two similar services: the **original service** that needed to be restored, and a new **restored service** that has been restored from a backup of the original.
112
112
113
113
Once the backup restore is complete, you should do one of the following:
114
114
- Use the new restored service and remove the original service.
@@ -118,17 +118,17 @@ Once the backup restore is complete, you should do one of the following:
118
118
119
119
To use the new service, perform these steps:
120
120
121
-
1. Verify that the new service has the IP Access List entries required by your use cases.
121
+
1. Verify that the new service has the IP Access List entries required for your use case.
122
122
1. Verify that the new service contains the data that you need.
123
123
1. Remove the original service.
124
124
125
-
### Migrate data from the **new restored service** back to the **original service**
125
+
### Migrate data from the **newly restored service** back to the **original service**
126
126
127
-
Suppose you cannot work with the newly restored service for any reason; for example, if you have users or applications that connect to the existing service. You may decide to migrate the newly restored data into the original service. The migration can be accomplished by following these steps:
127
+
Suppose you cannot work with the newly restored service for some reason, for example, if you still have users or applications that connect to the existing service. You may decide to migrate the newly restored data into the original service. The migration can be accomplished by following these steps:
128
128
129
129
**Allow remote access to the newly restored service**
130
130
131
-
The new service should be restored from a backup with the same IP Allow List as the original service. This is required as connections will not be allowed to other ClickHouse Cloud services unless you had allowed access from **Anywhere**. Modify the allow list and allow access from **Anywhere** temporarily. See the [IP Access List](/docs/en/cloud/security/setting-ip-filters) docs for details.
131
+
The new service should be restored from a backup with the same IP Allowlist as the original service. This is required as connections will not be allowed to other ClickHouse Cloud services unless you had allowed access from **Anywhere**. Modify the allowlist and allow access from **Anywhere** temporarily. See the [IP Access List](/docs/en/cloud/security/setting-ip-filters) docs for details.
132
132
133
133
**On the newly restored ClickHouse service (the system that hosts the restored data)**
134
134
@@ -151,9 +151,9 @@ Add a read only user that can read the source table (`db.table` in this example)
151
151
Copy the table definition:
152
152
153
153
```sql
154
-
select create_table_query
155
-
fromsystem.tables
156
-
where database ='db'and table ='table'
154
+
SELECT create_table_query
155
+
FROMsystem.tables
156
+
WHERE database ='db'AND table ='table'
157
157
```
158
158
159
159
**On the destination ClickHouse Cloud system (the one that had the damaged table):**
@@ -166,12 +166,11 @@ Create the destination database:
166
166
Using the `CREATE TABLE` statement from the source, create the destination:
167
167
168
168
:::tip
169
-
Change the `ENGINE` to `ReplicatedMergeTree` without any parameters when you run the `CREATE` statement. ClickHouse Cloud always replicates tables and provides the correct parameters.
169
+
Change the `ENGINE` to `ReplicatedMergeTree` without any parameters when you run the `CREATE` statement. ClickHouse Cloud always replicates tables and provides the correct parameters.
Copy file name to clipboardExpand all lines: docs/en/cloud/manage/cloud-tiers.md
+10-8Lines changed: 10 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,16 +6,18 @@ title: Service Types
6
6
7
7
# ClickHouse Cloud Tiers
8
8
9
-
There are several tiers available in ClickHouse Cloud. Tiers are assigned at any organizational level. Services within an organization therefore belong to the same tier. This page discusses which tiers is right for your specific use case.
9
+
There are several tiers available in ClickHouse Cloud.
10
+
Tiers are assigned at any organizational level. Services within an organization therefore belong to the same tier.
11
+
This page discusses which tiers are right for your specific use case.
10
12
11
13
**Summary of cloud tiers:**
12
14
13
15
<table><thead>
14
16
<tr>
15
17
<th></th>
16
-
<th>Basic</th>
17
-
<th>Scale (Recommended)</th>
18
-
<th>Enterprise</th>
18
+
<th>[Basic](#basic)</th>
19
+
<th>[Scale (Recommended)](#scale)</th>
20
+
<th>[Enterprise](#enterprise)</th>
19
21
</tr></thead>
20
22
<tbody>
21
23
<tr>
@@ -106,8 +108,8 @@ There are several tiers available in ClickHouse Cloud. Tiers are assigned at any
106
108
</tr>
107
109
<tr>
108
110
<td>SAML/SSO</td>
109
-
<td>✓</td>
110
-
<td>✓</td>
111
+
<td></td>
112
+
<td></td>
111
113
<td>✓</td>
112
114
</tr>
113
115
<tr>
@@ -178,10 +180,10 @@ Designed for workloads requiring enhanced SLAs (2+ replica deployments), scalabi
178
180
Caters to large-scale, mission critical deployments that have stringent security and compliance needs.
179
181
180
182
- Everything in Scale, **plus**
181
-
- Flexible scaling: standard profiles (1:4 vCPU:memory ratio), as well as `HighMemory (1:8 ratio)` and `HighCPU (1:2 ratio)` custom profiles.
183
+
- Flexible scaling: standard profiles (`1:4 vCPU:memory ratio`), as well as `HighMemory (1:8 ratio)` and `HighCPU (1:2 ratio)` custom profiles.
182
184
- Provides the highest levels of performance and reliability guarantees.
183
185
- Supports enterprise-grade security:
184
-
- Single Sign On(SSO)
186
+
- Single Sign On(SSO)
185
187
- Enhanced Encryption: For AWS and GCP services. Services are encrypted by our key by default and can be rotated to their key to enable Customer Managed Encryption Keys (CMEK).
186
188
- Allows Scheduled upgrades: Users can select the day of the week/time window for upgrades, both database and cloud releases.
0 commit comments