From 7eecfdbcf57c52caace1cec880ac0751c853f7e3 Mon Sep 17 00:00:00 2001 From: proller Date: Tue, 18 Sep 2018 18:59:14 +0300 Subject: [PATCH 1/2] wip --- contrib/poco | 2 +- contrib/zlib-ng | 2 +- debian/.pbuilderrc | 4 ++-- debian/changelog | 2 +- debian/rules | 7 ++++++- docs/en/operations/table_engines/distributed.md | 9 ++++++--- docs/ru/operations/table_engines/distributed.md | 5 ++++- release | 4 ++-- 8 files changed, 23 insertions(+), 12 deletions(-) diff --git a/contrib/poco b/contrib/poco index d7a4383c4d8..3df947389e6 160000 --- a/contrib/poco +++ b/contrib/poco @@ -1 +1 @@ -Subproject commit d7a4383c4d85b51938b62ed5812bc0935245edb3 +Subproject commit 3df947389e6d9654919002797bdd86ed190b3963 diff --git a/contrib/zlib-ng b/contrib/zlib-ng index 9173b89d467..a970eb93802 160000 --- a/contrib/zlib-ng +++ b/contrib/zlib-ng @@ -1 +1 @@ -Subproject commit 9173b89d46799582d20a30578e0aa9788bc7d6e1 +Subproject commit a970eb938023281a39c79bdbc0c2d1385c298c08 diff --git a/debian/.pbuilderrc b/debian/.pbuilderrc index 7d198625f24..8b787718d76 100644 --- a/debian/.pbuilderrc +++ b/debian/.pbuilderrc @@ -160,7 +160,7 @@ case "$DIST" in esac if [ "$ARCH" != arm64 ]; then - case "$DIST" in + case "$DIST" in "cosmic" | "bionic" | "experimental" | "unstable" | "testing") EXTRAPACKAGES+=" liblld-6.0-dev libclang-6.0-dev liblld-6.0 " export CMAKE_FLAGS="-DLLVM_VERSION_POSTFIX=-6.0 $CMAKE_FLAGS" @@ -168,7 +168,7 @@ if [ "$ARCH" != arm64 ]; then "artful" ) EXTRAPACKAGES+=" liblld-5.0-dev libclang-5.0-dev liblld-5.0 " ;; - esac + esac else export CMAKE_FLAGS="-DENABLE_EMBEDDED_COMPILER=0 $CMAKE_FLAGS" fi diff --git a/debian/changelog b/debian/changelog index 1b95c94274f..ff61d591f89 100644 --- a/debian/changelog +++ b/debian/changelog @@ -2,4 +2,4 @@ clickhouse (18.13.0) unstable; urgency=low * Modified source code - -- Mon, 17 Sep 2018 09:05:31 +0300 + -- proller Tue, 18 Sep 2018 18:30:31 +0300 diff --git a/debian/rules b/debian/rules index 33967073091..9cf58799610 100755 --- a/debian/rules +++ b/debian/rules @@ -47,7 +47,12 @@ else endif endif -CMAKE_FLAGS += -DCMAKE_CXX_COMPILER=`which $(CXX)` -DCMAKE_C_COMPILER=`which $(CC)` +ifdef CXX + CMAKE_FLAGS += -DCMAKE_CXX_COMPILER=`which $(CXX)` +endif +ifdef CC + CMAKE_FLAGS += -DCMAKE_C_COMPILER=`which $(CC)` +endif ifndef DISABLE_NINJA NINJA=$(shell which ninja) diff --git a/docs/en/operations/table_engines/distributed.md b/docs/en/operations/table_engines/distributed.md index 5ba4984d3f8..0bb55bc2603 100644 --- a/docs/en/operations/table_engines/distributed.md +++ b/docs/en/operations/table_engines/distributed.md @@ -47,7 +47,8 @@ Clusters are set like this: example01-02-2 - 9000 + 1 + 9440 @@ -60,12 +61,14 @@ Replicas are duplicating servers (in order to read all the data, you can access Cluster names must not contain dots. -The parameters `host`, `port`, and optionally `user` and `password` are specified for each server: +The parameters `host`, `port`, and optionally `user`, `password`, `secure`, `compression` are specified for each server: : - `host` – The address of the remote server. You can use either the domain or the IPv4 or IPv6 address. If you specify the domain, the server makes a DNS request when it starts, and the result is stored as long as the server is running. If the DNS request fails, the server doesn't start. If you change the DNS record, restart the server. - `port`– The TCP port for messenger activity ('tcp_port' in the config, usually set to 9000). Do not confuse it with http_port. - `user`– Name of the user for connecting to a remote server. Default value: default. This user must have access to connect to the specified server. Access is configured in the users.xml file. For more information, see the section "Access rights". -- `password` – The password for connecting to a remote server (not masked). Default value: empty string. +- `password` – The password for connecting to a remote server (not masked). Default value: empty string. +- `secure` - Use ssl for connection, usually you also should define `port` = 9440. Server should listen on 9440 and have correct certificates. +- `compression` - Use data compression. Default value: true. When specifying replicas, one of the available replicas will be selected for each of the shards when reading. You can configure the algorithm for load balancing (the preference for which replica to access) – see the 'load_balancing' setting. If the connection with the server is not established, there will be an attempt to connect with a short timeout. If the connection failed, the next replica will be selected, and so on for all the replicas. If the connection attempt failed for all the replicas, the attempt will be repeated the same way, several times. diff --git a/docs/ru/operations/table_engines/distributed.md b/docs/ru/operations/table_engines/distributed.md index c922890670f..a797677690e 100644 --- a/docs/ru/operations/table_engines/distributed.md +++ b/docs/ru/operations/table_engines/distributed.md @@ -60,12 +60,15 @@ logs - имя кластера в конфигурационном файле с Имя кластера не должно содержать точки. -В качестве параметров для каждого сервера указываются `host`, `port` и, не обязательно, `user`, `password`: +В качестве параметров для каждого сервера указываются `host`, `port` и, не обязательно, `user`, `password`, `secure`, `compression`: : - `host` - адрес удалённого сервера. Может быть указан домен, или IPv4 или IPv6 адрес. В случае указания домена, при старте сервера делается DNS запрос, и результат запоминается на всё время работы сервера. Если DNS запрос неуспешен, то сервер не запускается. Если вы изменяете DNS-запись, перезапустите сервер. - `port` - TCP-порт для межсерверного взаимодействия (в конфиге - tcp_port, обычно 9000). Не перепутайте с http_port. - `user` - имя пользователя для соединения с удалённым сервером. по умолчанию - default. Этот пользователь должен иметь доступ для соединения с указанным сервером. Доступы настраиваются в файле users.xml, подробнее смотрите в разделе "Права доступа". - `password` - пароль для соединения с удалённым сервером, в открытом виде. по умолчанию - пустая строка. + - `secure` - Использовать шифрованое соединение ssl, Обычно используется с портом `port` = 9440. Сервер должен слушать порт 9440 с корректными настройками сертификатов. + - `compression` - Использовать сжатие данных. По умолчанию: true. + При указании реплик, для каждого из шардов, при чтении, будет выбрана одна из доступных реплик. Можно настроить алгоритм балансировки нагрузки (то есть, предпочтения, на какую из реплик идти) - см. настройку load_balancing. Если соединение с сервером не установлено, то будет произведена попытка соединения с небольшим таймаутом. Если соединиться не удалось, то будет выбрана следующая реплика, и так для всех реплик. Если попытка соединения для всех реплик не удалась, то будут снова произведены попытки соединения по кругу, и так несколько раз. diff --git a/release b/release index dcf8a0f2b29..23bfd6f2dd6 100755 --- a/release +++ b/release @@ -34,8 +34,6 @@ cd $CURDIR source "./release_lib.sh" -DEB_CC=${DEB_CC:=gcc-7} -DEB_CXX=${DEB_CXX:=g++-7} PBUILDER_AUTOUPDATE=${PBUILDER_AUTOUPDATE=4320} DEBUILD_NOSIGN_OPTIONS="-us -uc" @@ -110,6 +108,8 @@ echo -e "\nCurrent version is $VERSION_STRING" gen_changelog "$VERSION_STRING" "" "$AUTHOR" "" if [ -z "$USE_PBUILDER" ] ; then + DEB_CC=${DEB_CC:=`which gcc-7 gcc-8 gcc | head -n1`} + DEB_CXX=${DEB_CXX:=`which g++-7 g++-8 g++ | head -n1`} # Build (only binary packages). debuild -e PATH -e SSH_AUTH_SOCK \ -e DEB_CC=$DEB_CC -e DEB_CXX=$DEB_CXX -e CMAKE_FLAGS="$CMAKE_FLAGS" \ From 59ad45c2e75fc3ff4b8ebb2cda87396316d7006a Mon Sep 17 00:00:00 2001 From: proller Date: Tue, 18 Sep 2018 19:48:58 +0300 Subject: [PATCH 2/2] clean --- contrib/poco | 2 +- contrib/zlib-ng | 2 +- debian/changelog | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/contrib/poco b/contrib/poco index 3df947389e6..d7a4383c4d8 160000 --- a/contrib/poco +++ b/contrib/poco @@ -1 +1 @@ -Subproject commit 3df947389e6d9654919002797bdd86ed190b3963 +Subproject commit d7a4383c4d85b51938b62ed5812bc0935245edb3 diff --git a/contrib/zlib-ng b/contrib/zlib-ng index a970eb93802..9173b89d467 160000 --- a/contrib/zlib-ng +++ b/contrib/zlib-ng @@ -1 +1 @@ -Subproject commit a970eb938023281a39c79bdbc0c2d1385c298c08 +Subproject commit 9173b89d46799582d20a30578e0aa9788bc7d6e1 diff --git a/debian/changelog b/debian/changelog index ff61d591f89..1b95c94274f 100644 --- a/debian/changelog +++ b/debian/changelog @@ -2,4 +2,4 @@ clickhouse (18.13.0) unstable; urgency=low * Modified source code - -- proller Tue, 18 Sep 2018 18:30:31 +0300 + -- Mon, 17 Sep 2018 09:05:31 +0300