Commit Graph

573 Commits

Author SHA1 Message Date
kssenii
ac2d9a73a8 User managed slots 2021-09-04 14:49:40 +03:00
Kseniia Sumarokova
8c5acc371a
Merge pull request #28365 from kssenii/rabbitmq-ssl
Allow ssl connection for rabbitmq
2021-09-03 16:53:28 +03:00
kssenii
f17d1bc7a5 Merge branch 'master' of https://github.com/ClickHouse/ClickHouse into materialized-postgresql 2021-09-03 09:03:48 +00:00
Azat Khuzhin
ed70ed6f71 Introduce connection_no_wait setting for MySQL engine.
This will allow to avoid superfluous sleep during query execution, since
this not only not desired behavoiur, but also may hang the server, since
if you will execute enough queries that will use MySQL database but will
not allow enough connections (or your MySQL server is too slow) then you
may run out of threads in the global thread pool.

Also note that right now it is possible to get deadlock when the mysql
pool is full, consider the following scenario:

- you have m1 and m2 mysql tables
- you have q1 and q2 queries, bot queries join m1 and m2
- q1 allocated connection for m1 but cannot allocate connection for m2
- q2 allocated connection for m2 but cannot allocate connection for m1
- but to resolve the lock one should give up on the locking while it is not possible right now...

And then you got no free threads and this:

    # grep -h ^202 /proc/$(pgrep clickhouse-serv)/task/*/syscall  | cut -d' ' -f2 | sort | uniq -c | sort -nr | head
       1554 0x7ffb60b92fe8 # mutex in mysqlxx::PoolWithFailover::get
       1375 0x7ffb9f1c4748 # mutex in ::PoolEntryHelper::~PoolEntryHelper from DB::MultiplexedConnections::invalidateReplica
       1160 0x7ffb612918b8 # mutex in mysqlxx::PoolWithFailover::get
         42 0x7ffb9f057984 # mutex in ThreadPoolImpl<std::__1::thread>::worker

    *NOTE: 202 is a `futex` with WAIT*

(Went with `syscall` because debugging 10k+ threads is not easy, and
eventually it may TRAP)
2021-09-02 22:23:37 +03:00
George
c4839e28d3 Added documentation 2021-09-02 03:48:47 +03:00
alexey-milovidov
ff0b332c24
Update custom-partitioning-key.md 2021-09-01 20:53:06 +03:00
alexey-milovidov
4699386470
Update mergetree.md 2021-09-01 20:52:05 +03:00
kssenii
335b6f12fd Fix 2021-08-30 20:59:03 +03:00
kssenii
378e1f74aa Fix tests 2021-08-28 19:51:04 +03:00
kssenii
cc90d787f8 Slightly better 2021-08-28 17:45:15 +03:00
Zhichang Yu
ef1994f420 set env LIBHDFS3_CONF, refers to ClickHouse#8159 2021-08-28 09:16:48 +08:00
Kseniia Sumarokova
31afd7d09c
Merge pull request #28081 from kssenii/pg-conflict
Support `on conflict` for postgres engine
2021-08-26 16:30:30 +03:00
Nikolai Kochetov
11d79ec24f
Merge pull request #27725 from olgarev/revolg-DOCSUP-12894-projections_translated
DOCSUP-12894: Projections settings
2021-08-26 11:26:58 +03:00
olgarev
89a4ca27ae
Apply suggestions from code review
Co-authored-by: Alexey Boykov <33257111+mathalex@users.noreply.github.com>
2021-08-25 15:15:39 +03:00
kssenii
0ec716292c Postgres ON CONFLICT 2021-08-24 12:37:32 +00:00
Kruglov Pavel
86f89af4d2
Merge pull request #28077 from Avogar/fix-typo-in-docks
Fix typo in docs
2021-08-24 13:50:52 +03:00
Pavel Kruglov
f31b67238d Fix typo 2021-08-24 13:49:59 +03:00
alesapin
80085bd988
Merge pull request #27989 from olgarev/revolg-DOCSUP-13334-Recompression_TTL
DOCSUP-13334: Recompression TTL and Settings
2021-08-24 10:14:45 +03:00
olgarev
2aaa5eb584 Removed 2021-08-23 14:31:42 +00:00
olgarev
7d8436e690
Update docs/en/engines/table-engines/mergetree-family/mergetree.md
Co-authored-by: alesapin <alesapin@gmail.com>
2021-08-23 17:14:30 +03:00
olgarev
1448e1cefc
Apply suggestions from code review
Co-authored-by: alesapin <alesapin@gmail.com>
2021-08-23 17:13:50 +03:00
olgarev
4625bc9e77
Update docs/en/engines/table-engines/mergetree-family/mergetree.md
Co-authored-by: alesapin <alesapin@gmail.com>
2021-08-23 17:10:55 +03:00
olgarev
21627e7be4
Apply suggestions from code review 2021-08-22 22:06:42 +03:00
olgarev
a11bebc082
Update docs/en/engines/table-engines/mergetree-family/mergetree.md
Co-authored-by: Anna <42538400+adevyatova@users.noreply.github.com>
2021-08-22 22:04:31 +03:00
olgarev
9af0ff311f
Update docs/en/engines/table-engines/mergetree-family/mergetree.md
Co-authored-by: Anna <42538400+adevyatova@users.noreply.github.com>
2021-08-22 22:03:56 +03:00
olgarev
9ebae04cfe
Update docs/en/engines/table-engines/mergetree-family/mergetree.md
Co-authored-by: Anna <42538400+adevyatova@users.noreply.github.com>
2021-08-22 22:03:41 +03:00
Kseniia Sumarokova
a08fde9226
Merge pull request #27703 from adevyatova/annadevyatova-DOCSUP-11655-sqlite
DOCSUP-11655: Document the SQLite
2021-08-22 21:46:44 +03:00
Anna
a7469d5686
Update sqlite.md
Update
2021-08-22 20:28:47 +03:00
Anna
fe8531c9f0
Update sqlite.md
Added example this "INSERT" query
2021-08-22 20:21:09 +03:00
olgarev
696a0b3db0 Recompression TTL and settings 2021-08-22 14:53:44 +00:00
olgarev
beaabd6fd5 Merge branch 'revolg-DOCSUP-12894-projections_translated' of https://github.com/olgarev/ClickHouse into revolg-DOCSUP-12894-projections_translated 2021-08-21 13:56:15 +00:00
olgarev
12218fd973 Merge branch 'master' into revolg-DOCSUP-12894-projections_translated 2021-08-21 13:54:24 +00:00
Kseniia Sumarokova
ac26e03cb4
Update docs/en/engines/database-engines/sqlite.md 2021-08-20 20:42:56 +03:00
olgarev
29b18d6bdc
Apply suggestions from code review
Co-authored-by: Anna <42538400+adevyatova@users.noreply.github.com>
2021-08-20 15:36:25 +03:00
adevyatova
c402670239 Add ru translation 2021-08-20 10:34:42 +00:00
Anna
ad5ca57c7f
Update docs/en/engines/table-engines/integrations/sqlite.md
Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>
2021-08-19 07:30:43 +03:00
Anna
a871916153
Update docs/en/engines/table-engines/integrations/sqlite.md
Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>
2021-08-19 07:29:26 +03:00
Anna
b9f2ed45a2
Update docs/en/engines/table-engines/integrations/sqlite.md
Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>
2021-08-19 07:29:21 +03:00
Anna
2644f7a48e
Update docs/en/engines/table-engines/integrations/sqlite.md
Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>
2021-08-19 07:29:12 +03:00
Anna
842d520967
Update docs/en/engines/table-engines/integrations/sqlite.md
Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>
2021-08-19 07:29:02 +03:00
Anna
77da21a1ba
Update docs/en/engines/table-engines/integrations/sqlite.md
Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>
2021-08-19 07:28:41 +03:00
Anna
cc44b54a58
Update docs/en/engines/database-engines/sqlite.md
Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>
2021-08-19 07:28:24 +03:00
Anna
dd6273fec4
Update docs/en/engines/database-engines/sqlite.md
Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>
2021-08-19 07:28:12 +03:00
Anna
be2a12a726
Update docs/en/engines/database-engines/sqlite.md
Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>
2021-08-19 07:27:56 +03:00
Anna
9a84270658
Update docs/en/engines/database-engines/sqlite.md
Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>
2021-08-19 07:27:42 +03:00
Anna
b891af816b
Update docs/en/engines/database-engines/sqlite.md
Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>
2021-08-19 07:27:36 +03:00
Anna
62f0517e31
Update docs/en/engines/database-engines/sqlite.md
Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>
2021-08-19 07:27:24 +03:00
adevyatova
fcf3413ac9 Small fixes 2021-08-18 13:40:09 +00:00
adevyatova
4fb4387180 Added examples 2021-08-18 13:32:34 +00:00
Alexey Boykov
29ff255601
Merge pull request #27786 from KazeZlat/patch-1
Added attention for ALTER on Buffer table prior to 28.10.2020
2021-08-18 14:41:09 +03:00
tavplubix
a2ffc2f896
Merge pull request #27759 from olgarev/revolg-DOCSUP-12413-macros_support_in_functions_cluster
DOCSUP-12413: macros support in functions cluster and clusterAllReplicas
2021-08-18 13:00:49 +03:00
Nikita Mikhalev
62abef73f1
Improved phrasing of attention about ALTER on Buffer table
Co-authored-by: Alexey Boykov <33257111+mathalex@users.noreply.github.com>
2021-08-18 10:24:42 +05:00
Maksim Kita
32ee8618b7
Merge pull request #27533 from den-crane/patch-23
Doc. graphitemergetree added info about AVG
2021-08-17 21:21:42 +03:00
Alexander Kuzmenkov
c0e1c42562
Merge pull request #27536 from adevyatova/annadevyatova-DOCSUP-11968-explain
DOCSUP-11968: Document the SQL-statement EXPLAIN ESTIMATE
2021-08-17 16:50:34 +03:00
Nikita Mikhalev
189ad46206
Added attention for ALTER on Buffer table prior to 28.10.2020 2021-08-17 17:30:05 +05:00
Vitaly Baranov
50b4ca7650
Merge pull request #27362 from sevirov/sevirov-DOCSUP-12128-data_encryption_on_vfs_level
DOCSUP-12128: Data encryption on VFS level
2021-08-17 12:12:09 +03:00
Denny Crane
344016ee0e
Update graphitemergetree.md 2021-08-17 00:15:07 -03:00
Denny Crane
4d044a0657
Update graphitemergetree.md 2021-08-16 21:26:41 -03:00
olgarev
4ad85ca745 Initial 2021-08-16 23:00:38 +00:00
olgarev
cc924c93c8
Apply suggestions from code review
Anchors in links fixed
2021-08-16 07:04:18 +03:00
olgarev
68b3122272
Apply suggestions from code review 2021-08-16 06:03:05 +03:00
olgarev
2428c6c78c Revert "Links fixed again"
This reverts commit fd8042de3e.
2021-08-16 02:58:00 +00:00
olgarev
fd8042de3e Links fixed again 2021-08-16 02:57:00 +00:00
olgarev
b2336346cd Revert "Links fixed"
This reverts commit 52cfbe2812.
2021-08-16 02:53:21 +00:00
olgarev
52cfbe2812 Links fixed 2021-08-16 02:03:37 +00:00
olgarev
1da536f8e0 Next 2021-08-16 01:58:10 +00:00
olgarev
de2341fe02 Initial 2021-08-16 01:57:09 +00:00
adevyatova
a54060dd02 Add en description 2021-08-15 16:34:10 +00:00
adevyatova
346def3666 Update 2021-08-15 14:11:37 +00:00
adevyatova
8acaa3540b Fixed the header 2021-08-15 17:04:17 +03:00
adevyatova
be8d87029c Add templates 2021-08-15 13:53:49 +00:00
Alexey
382fd7d4ac translated parts in MergeTree 2021-08-13 19:28:52 +00:00
Kruglov Pavel
ca3e9b1f3a
Merge pull request #27139 from ka1bi4/romanzhukov-DOCSUP-12328-upd_materialize_mysql
DOCSUP-12328: Edit and translate to Russian (update materialize_mysql)
2021-08-13 15:57:05 +03:00
Dmitriy
56e234d59b Edit and translate to Russian
Выполнил перевод на русский язык.
2021-08-12 21:17:14 +03:00
Alexey Boykov
23fd7be921
Merge pull request #25491 from morozovsk/patch-5
Documentation: Basic info about projections
2021-08-12 17:45:26 +03:00
Vladimir Goncharov
735a377659
Update docs/en/engines/table-engines/mergetree-family/mergetree.md
Co-authored-by: Alexey Boykov <33257111+mathalex@users.noreply.github.com>
2021-08-12 14:32:35 +03:00
Roman Bug
42da5f488d
Update docs/en/engines/database-engines/materialized-mysql.md
Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>
2021-08-12 09:51:22 +03:00
Roman Bug
9230ee3175
Update docs/en/engines/database-engines/materialized-mysql.md
Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>
2021-08-12 09:51:05 +03:00
Roman Bug
77f343267a
Update docs/en/engines/database-engines/materialized-mysql.md
Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>
2021-08-12 09:46:16 +03:00
romanzhukov
b52b77179b Merge branch 'master' into romanzhukov-DOCSUP-12328-upd_materialize_mysql
# Conflicts:
#	docs/en/engines/database-engines/materialized-mysql.md
#	docs/ru/engines/database-engines/materialized-mysql.md
2021-08-11 20:29:09 +03:00
Dmitriy
245307635e Fix description
Поправил описание, перенес HDFS в storing-data.md
2021-08-10 22:43:19 +03:00
Denny Crane
4e62225a0b
Update graphitemergetree.md 2021-08-10 14:33:36 -03:00
Dmitriy
35d06ab6a4 Merge remote-tracking branch 'remotes/clickhouse/master' into sevirov-DOCSUP-12128-data_encryption_on_vfs_level 2021-08-10 19:29:23 +03:00
Alexander Tokmakov
6ebde145eb fix docs 2021-08-10 11:24:22 +03:00
Kseniia Sumarokova
f6cabb6e08
Merge pull request #27055 from olgarev/revolg-DOCSUP-12003-S3_and_HDFS_zero_copy_replication
DOCSUP-12003: S3 and HDFS zero copy replication
2021-08-10 08:57:35 +03:00
Vitaly Baranov
d782406c0e
Merge pull request #27170 from adevyatova/annadevyatova-DOCSUP-12212
DOCSUP-12212: Document currentRoles, enabledRoles, defaultRoles functions
2021-08-09 16:17:53 +03:00
Maksim Kita
70b52fc039
Merge pull request #27063 from lehasm/alexey-sm-DOCSUP-9860-document-refactored-storage-dictionary
DOCSUP-9860: document refactored storage dictionary
2021-08-09 14:17:34 +03:00
Vladimir C
908505c12e
Merge pull request #27057 from olgarev/revolg-DOCSUP-10286_Alter_delete_in_join_table_engine 2021-08-09 12:07:18 +03:00
Vladimir C
75ded13df7
Minor updates in Join Table Engine docs 2021-08-09 10:52:04 +03:00
lehasm
6f149630c3
Update docs/en/engines/database-engines/atomic.md
Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>
2021-08-09 08:49:09 +03:00
lehasm
7fa4c92408
Update docs/en/engines/database-engines/atomic.md
Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>
2021-08-09 08:48:17 +03:00
Kseniia Sumarokova
a966a440b0
Merge pull request #26677 from sevirov/sevirov-DOCSUP-11550-edit_and_translate_to_russian_materializedpostgresql
DOCSUP-11550: Edit and translate to Russian (MaterializePostgreSQL)
2021-08-09 08:27:18 +03:00
olgarev
06e48f39b0 New page - External Disks for Storing Data 2021-08-08 23:19:00 +00:00
sevirov
92cec718fb
Update docs/en/engines/table-engines/mergetree-family/mergetree.md
Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>
2021-08-08 14:20:59 +03:00
sevirov
b3e0a0c6b2
Update docs/en/engines/table-engines/mergetree-family/mergetree.md
Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>
2021-08-08 14:20:53 +03:00
romanzhukov
09da5d50d2 Merge branch 'master' of https://github.com/ClickHouse/ClickHouse into romanzhukov-DOCSUP-12328-upd_materialize_mysql 2021-08-08 12:10:32 +03:00
Dmitriy
2fae2c9f74 Update mergetree.md
Поправил ссылки.
2021-08-07 19:32:10 +03:00
Dmitriy
27f489b41f Correction of the description
Скорректировал описание.
2021-08-07 18:50:24 +03:00
Anna
1622371af1
Merge branch 'master' into annadevyatova-DOCSUP-12212 2021-08-07 18:07:37 +03:00
Dmitriy
d97df19e76 Fix link
Поправил ссылку.
2021-08-07 14:58:03 +03:00