Skip to content

Commit ba70e7a

Browse files
committed
Merge upstream/master into agent/optimize-json-subcolumn-type-lookup
2 parents a548deb + ce6bd45 commit ba70e7a

88 files changed

Lines changed: 2246 additions & 876 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎ci/praktika/infrastructure/runner/runner-init.py‎

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import argparse
55
import json
66
import os
7+
import random
78
import sys
89
import time
910
import shutil
@@ -40,7 +41,7 @@ class RunnerConfig:
4041
"""Configuration and runtime state for the GitHub Actions runner."""
4142

4243
# Constants
43-
version: int = 76
44+
version: int = 77
4445
init_environment: str = Environment.TEST
4546
verbose = False
4647
script_path = os.path.abspath(__file__)
@@ -220,6 +221,10 @@ def __init__(self, ec2: EC2):
220221
config.max_jobs = 1_000_000
221222
config.keep_workspace = True
222223

224+
if config.init_environment == Environment.MACOS:
225+
# Drop swap files and other accumulated state; the random offset staggers reboots across the fleet.
226+
config.max_life = 3600 * 24 * 3 + 900 * random.randint(0, 24)
227+
223228
log(f"max jobs: {config.max_jobs}")
224229
log(f"max chill: {config.max_chill}")
225230
log(f"labels: {self.labels}")
@@ -238,11 +243,8 @@ def _check_conditions(self) -> None:
238243
self.collect_logs("configure")
239244
raise Exception(f"Too many errors ({self.total_errors})")
240245

241-
# macOS runners run continuously without lifetime limits, so they exit
242-
# to pick up a newer init script instead of ageing out like Linux.
243246
if config.init_environment == Environment.MACOS:
244247
self._exit_if_init_script_upgraded()
245-
return
246248

247249
runner_age = int(time.time()) - self.runner_start_time
248250
if config.max_life < runner_age:
@@ -345,6 +347,8 @@ def config(self) -> None:
345347
def run(self) -> None:
346348
"""Main runner loop."""
347349
if config.init_environment == Environment.MACOS:
350+
# runner-init starts once per boot; unified logs and `uuidtext` otherwise grow to several GB.
351+
run_bash("log erase --all", sudo=True)
348352
Runner.configure_darwin()
349353
else:
350354
Runner.configure_linux()
@@ -595,6 +599,21 @@ def _retarget_macos_log_path(node):
595599
mdutil -a -i off || true
596600
rm -rf /.Spotlight-V100 || true
597601
602+
# No backup destination exists, but enabled Time Machine can still take local APFS snapshots.
603+
tmutil disable || true
604+
605+
# Photos analysis, Siri, iCloud and location services have no use on a runner.
606+
RUNNER_UID=$(id -u "$SUDO_USER")
607+
for agent in photoanalysisd mediaanalysisd Siri.agent assistantd cloudd bird cloudphotod; do
608+
launchctl disable "gui/$RUNNER_UID/com.apple.$agent" || true
609+
done
610+
launchctl disable system/com.apple.locationd || true
611+
612+
# Stop persisting file-change history; CI churn grows `/.fseventsd` to several GB. Takes effect after reboot.
613+
rm -rf /System/Volumes/Data/.fseventsd || true
614+
mkdir -p /System/Volumes/Data/.fseventsd
615+
touch /System/Volumes/Data/.fseventsd/no_log
616+
598617
# CloudWatch agent
599618
case $(uname -m) in
600619
x86_64) CLOUDWATCH_ARCH=amd64 ;;
@@ -653,6 +672,7 @@ def _retarget_macos_log_path(node):
653672
bash \
654673
coreutils \
655674
llvm
675+
brew cleanup --prune=all -s
656676
657677
# Python packages used by jobs. `boto3` is bootstrapped in `user_data_macos.txt`
658678
# because runner-init itself imports it; the rest are version-gated here.

‎docker/bare/README.md‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## The bare minimum ClickHouse Docker image.
22

3-
It is intended as a showcase to check the amount of implicit dependencies of ClickHouse from the OS in addition to the OS kernel.
3+
It is intended as a showcase to check the amount of implicit dependencies of ClickHouse on the OS in addition to the OS kernel.
44

55
Example usage:
66

@@ -32,8 +32,8 @@ sudo chroot . /clickhouse server
3232

3333
## What does it miss?
3434

35-
- creation of `clickhouse` user to run the server;
36-
- VOLUME for server;
37-
- most of the details, see other docker images for comparison;
35+
- Creation of `clickhouse` user to run the server.
36+
- VOLUME for server.
37+
- For most details, see other docker images for comparison.
3838

3939
A binary built with musl (`cmake -DCMAKE_TOOLCHAIN_FILE=cmake/linux/toolchain-x86_64-musl.cmake`) needs none of the files installed by the `prepare` script: it is statically linked, CA certificates are embedded into the binary and used when none are found on the filesystem, DNS works without `/etc/resolv.conf` (well-known public DNS resolvers are used when the file does not exist), and `localhost` resolves to loopback per RFC 6761 even without `/etc/hosts`.

‎docker/server/README.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ For more information and documentation see https://clickhouse.com/.
3232

3333
- The amd64 image requires support for the [x86-64-v3 microarchitecture level](https://en.wikipedia.org/wiki/X86-64#Microarchitecture_levels) (AVX2, BMI1, BMI2, F16C, FMA, LZCNT, MOVBE, XSAVE). Virtually all x86 CPUs after 2015 support x86-64-v3.
3434
- The arm64 image requires support for the [ARMv8.2-A architecture](https://en.wikipedia.org/wiki/AArch64#ARMv8.2-A) and additionally the Load-Acquire RCpc register. The register is optional in version ARMv8.2-A and mandatory in [ARMv8.3-A](https://en.wikipedia.org/wiki/AArch64#ARMv8.3-A). Supported in Graviton >=2, Azure and GCP instances. Examples for unsupported devices are Raspberry Pi 4 (ARMv8.0-A) and Jetson AGX Xavier/Orin (ARMv8.2-A).
35-
- Since the ClickHouse 24.11 Ubuntu images started using `ubuntu:22.04` as its base image. It requires docker version >= `20.10.10` containing [patch](https://github.com/moby/moby/commit/977283509f75303bc6612665a04abf76ff1d2468). As a workaround you could use `docker run --security-opt seccomp=unconfined` instead, however that has security implications.
35+
- Since the ClickHouse 24.11 Ubuntu images started using `ubuntu:22.04` as their base image. It requires docker version >= `20.10.10` containing [patch](https://github.com/moby/moby/commit/977283509f75303bc6612665a04abf76ff1d2468). As a workaround you could use `docker run --security-opt seccomp=unconfined` instead, however that has security implications.
3636

3737
## How to use this image
3838

@@ -44,7 +44,7 @@ docker run -d --name some-clickhouse-server --ulimit nofile=262144:262144 clickh
4444

4545
By default, ClickHouse will be accessible only via the Docker network. See the **networking** section below.
4646

47-
By default, starting above server instance will be run as the `default` user without password.
47+
By default, the server instance runs as the `default` user without a password.
4848

4949
### connect to it from a native client
5050

‎docker/server/README.src/content.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ For more information and documentation see https://clickhouse.com/.
2626

2727
- The amd64 image requires support for the [x86-64-v3 microarchitecture level](https://en.wikipedia.org/wiki/X86-64#Microarchitecture_levels) (AVX2, BMI1, BMI2, F16C, FMA, LZCNT, MOVBE, XSAVE). Virtually all x86 CPUs after 2015 support x86-64-v3.
2828
- The arm64 image requires support for the [ARMv8.2-A architecture](https://en.wikipedia.org/wiki/AArch64#ARMv8.2-A) and additionally the Load-Acquire RCpc register. The register is optional in version ARMv8.2-A and mandatory in [ARMv8.3-A](https://en.wikipedia.org/wiki/AArch64#ARMv8.3-A). Supported in Graviton >=2, Azure and GCP instances. Examples for unsupported devices are Raspberry Pi 4 (ARMv8.0-A) and Jetson AGX Xavier/Orin (ARMv8.2-A).
29-
- Since the ClickHouse 24.11 Ubuntu images started using `ubuntu:22.04` as its base image. It requires docker version >= `20.10.10` containing [patch](https://github.com/moby/moby/commit/977283509f75303bc6612665a04abf76ff1d2468). As a workaround you could use `docker run --security-opt seccomp=unconfined` instead, however that has security implications.
29+
- Since the ClickHouse 24.11 Ubuntu images started using `ubuntu:22.04` as their base image. It requires docker version >= `20.10.10` containing [patch](https://github.com/moby/moby/commit/977283509f75303bc6612665a04abf76ff1d2468). As a workaround you could use `docker run --security-opt seccomp=unconfined` instead, however that has security implications.
3030

3131
## How to use this image
3232

@@ -38,7 +38,7 @@ docker run -d --name some-clickhouse-server --ulimit nofile=262144:262144 %%IMAG
3838

3939
By default, ClickHouse will be accessible only via the Docker network. See the **networking** section below.
4040

41-
By default, starting above server instance will be run as the `default` user without password.
41+
By default, the server instance runs as the `default` user without a password.
4242

4343
### connect to it from a native client
4444

‎docs/_specs/cloud-openapi.json‎

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"version": "1.0",
66
"contact": {
77
"name": "ClickHouse Support",
8-
"url": "https://clickhouse.com/docs/en/cloud/manage/openapi?referrer=openapi-1156400",
8+
"url": "https://clickhouse.com/docs/en/cloud/manage/openapi?referrer=openapi-1157335",
99
"email": "[email protected]"
1010
}
1111
},
@@ -378,7 +378,7 @@
378378
"/v1/organizations/{organizationId}/prometheus": {
379379
"get": {
380380
"summary": "Get organization metrics",
381-
"description": "Deprecated. Use the Prometheus service discovery endpoint (/v1/organizations/{organizationId}/prometheus/discovery) instead. This endpoint is not available for new organizations; contact ClickHouse support to request access. Returns Prometheus metrics for the services in an organization that the caller is authorized to view. Services the caller lacks view access to are omitted.",
381+
"description": "**Deprecated.** This endpoint is disabled on 1 January 2027. It is already disabled for new organizations.\n\nMigrate before then to the service discovery endpoint, `GET /v1/organizations/{organizationId}/prometheus/discovery`. It returns one scrape target per service in the [`http_sd`](https://prometheus.io/docs/prometheus/latest/http_sd/) format, and Prometheus picks up new and deleted services automatically. The [Prometheus integration guide](https://clickhouse.com/docs/integrations/prometheus) has a `prometheus.yml` example.\n\nIf you need this endpoint after 1 January 2027, contact ClickHouse support to have it enabled for your organization.\n\nReturns Prometheus metrics for the services in the organization. Only services the API key is authorized to view are included.",
382382
"operationId": "organizationPrometheusGet",
383383
"parameters": [
384384
{
@@ -26056,7 +26056,7 @@
2605626056
},
2605726057
"sortingKey": {
2605826058
"type": "array",
26059-
"description": "Sorting key of the destination table. List of columns.",
26059+
"description": "Sorting key of the destination table. An entry that matches the name of a column declared in `columns` is used as that column. Any other entry is used as a SQL expression, for example a JSON sub-path such as `payload.workspace_id`. Entries must not contain commas, and every component must be non-Nullable.",
2606026060
"items": {
2606126061
"type": "string"
2606226062
}
@@ -26850,13 +26850,18 @@
2685026850
"scim_group_update",
2685126851
"scim_group_delete",
2685226852
"organization_saml_connection_delete",
26853+
"organization_update_saml_query_ownership_migration",
26854+
"organization_approved_domain_verify",
26855+
"organization_approved_domain_update",
26856+
"organization_approved_domain_delete",
2685326857
"datadog_integration_create",
2685426858
"datadog_integration_delete",
2685526859
"organization_update_spend_alert",
2685626860
"organization_update_core_dumps",
2685726861
"organization_update_private_endpoints",
2685826862
"organization_update_pci_compliance",
2685926863
"organization_update_hipaa_status",
26864+
"organization_update_public_preview",
2686026865
"transfer_credits_in",
2686126866
"transfer_credits_out",
2686226867
"promo_code_claim",
Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,18 @@
11
---
22
title: "Get organization metrics"
33
openapi: "/_specs/cloud-openapi.json GET /v1/organizations/{organizationId}/prometheus"
4-
description: "Deprecated. Use the Prometheus service discovery endpoint (/v1/organizations/{organizationId}/prometheus/discovery) instead. This endpoint is not available for new organizations; contact ClickHouse support to request access. Returns Prometheus metrics for the services in an organization that the caller is authorized to view. Services the caller lacks view access to are omitted."
4+
description: "**Deprecated.** This endpoint is disabled on 1 January 2027. It is already disabled for new organizations.\n\nMigrate before then to the service discovery endpoint, `GET /v1/organizations/{organizationId}/prometheus/discovery`. It returns one scrape target per service in the [`http_sd`](https://prometheus.io/docs/prometheus/latest/http_sd/) format, and Prometheus picks up new and deleted services automatically. The [Prometheus integration guide](https://clickhouse.com/docs/integrations/prometheus) has a `prometheus.yml` example.\n\nIf you need this endpoint after 1 January 2027, contact ClickHouse support to have it enabled for your organization.\n\nReturns Prometheus metrics for the services in the organization. Only services the API key is authorized to view are included."
55
deprecated: true
66
---
77

88
{/* AUTOGENERATED_START */}
99

10-
Deprecated. Use the Prometheus service discovery endpoint (/v1/organizations/\{organizationId\}/prometheus/discovery) instead. This endpoint is not available for new organizations; contact ClickHouse support to request access. Returns Prometheus metrics for the services in an organization that the caller is authorized to view. Services the caller lacks view access to are omitted.
10+
**Deprecated.** This endpoint is disabled on 1 January 2027. It is already disabled for new organizations.
11+
12+
Migrate before then to the service discovery endpoint, `GET /v1/organizations/{organizationId}/prometheus/discovery`. It returns one scrape target per service in the [`http_sd`](https://prometheus.io/docs/prometheus/latest/http_sd/) format, and Prometheus picks up new and deleted services automatically. The [Prometheus integration guide](https://clickhouse.com/docs/integrations/prometheus) has a `prometheus.yml` example.
13+
14+
If you need this endpoint after 1 January 2027, contact ClickHouse support to have it enabled for your organization.
15+
16+
Returns Prometheus metrics for the services in the organization. Only services the API key is authorized to view are included.
1117

1218
{/* AUTOGENERATED_END */}

‎docs/products/cloud/features/monitoring/integrations.mdx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ To monitor your ClickHouse deployment in Datadog, ClickHouse offers several inte
1616

1717
| Integration | Docs | Deployment | Signals |
1818
|---|---|---|---|
19-
| [ClickHouse Cloud Datadog API integration](#clickhouse-cloud-datadog-api-integration) *(recommended)* | [docs.datadoghq.com](https://docs.datadoghq.com/integrations/clickhouse-cloud/) | Cloud | Metrics |
20-
| [ClickHouse Cloud Prometheus integration](#clickhouse-cloud-prometheus-integration) | [clickhouse.com/docs](/products/cloud/features/monitoring/prometheus) | Cloud | Metrics |
19+
| [ClickHouse Cloud Prometheus integration](#clickhouse-cloud-prometheus-integration) *(recommended)* | [clickhouse.com/docs](/products/cloud/features/monitoring/prometheus) | Cloud | Metrics |
20+
| [ClickHouse Cloud Datadog API integration](#clickhouse-cloud-datadog-api-integration) | [docs.datadoghq.com](https://docs.datadoghq.com/integrations/clickhouse-cloud/) | Cloud | Metrics |
2121
| [ClickHouse Datadog Agent integration](#clickhouse-datadog-agent-integration) | [docs.datadoghq.com](https://docs.datadoghq.com/integrations/clickhouse/?tab=host) | OSS / Cloud | Logs, Metrics |
2222
| [ClickHouse Datadog DBM](#clickhouse-datadog-dbm) | [datadoghq.com](https://www.datadoghq.com/product-preview/database-monitoring-for-clickhouse/) | OSS / Cloud | Logs, Metrics, Query Insights |
2323

‎docs/products/cloud/getting-started/cloud-get-started.mdx‎

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,15 @@ you through each step of the process as you explore ClickHouse Cloud.
2020
</Step>
2121
<Step title="Get set up with ClickHouse Cloud" id="get-set-up-with-clickhouse-cloud">
2222

23-
Now that you know what ClickHouse Cloud is, we'll walk you through the process
24-
of getting your data into ClickHouse Cloud, show you the main features available
25-
and point you towards some general best practices you should know.
23+
Now that you know what ClickHouse Cloud is and how it might be useful, we'll walk you through the process of getting your data into ClickHouse Cloud, show you the main features available,
24+
and point you toward some general best practices you should know.
2625

2726
Topics include:
2827

28+
- [Signing up](https://clickhouse.cloud/signUp?loc=docs-products-cloud-getting-started-cloud-get-started)
29+
for an account with free trial credit
30+
- A [Quick Start](/get-started/setup/cloud) to provision
31+
a ClickHouse Cloud service and access it using the CLI or any SQL client
2932
- [Migration guides](/get-started/migrate/overview) from various platforms
3033
</Step>
3134
<Step title="Tune your ClickHouse Cloud deployment" id="evaluate-clickhouse-cloud">

‎docs/products/cloud/getting-started/intro.mdx‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ With Cloud, infrastructure, maintenance, scaling, and operations are taken care
1717
for you, so that you can focus on what matters most to you, which is building value
1818
for your organization and your customers faster.
1919

20+
You can [sign up for ClickHouse Cloud](https://clickhouse.cloud/signUp?loc=docs-products-cloud-getting-started-intro)
21+
and start with $300 in free trial credits, available to use within your first 30 days.
22+
2023
## Benefits of ClickHouse Cloud {#benefits-of-clickhouse-cloud}
2124

2225
ClickHouse Cloud offers several major benefits over the open-source version:

0 commit comments

Comments
 (0)