Commit Graph

195 Commits

Author SHA1 Message Date
Ivan Blinkov
f429db1ee9 find . -type f -name '*.md'| xargs -I{} perl -pi -e 's|https://clickhouse.tech|https://clickhouse.com|g' {} 2021-09-19 23:05:54 +03:00
Vladimir C
5b967d91ba
Merge pull request #28716 from olgarev/revolg-DOCSUP-13742-partitions_in_s3_table_function 2021-09-10 17:57:58 +03:00
Olga Revyakina
cd038979d4 Initial (en) 2021-09-08 05:32:02 +03:00
Maksim Kita
7a4a0b0ede
Merge pull request #28474 from azat/mysql-connection_no_block
Introduce connection_wait_timeout for MySQL engine.
2021-09-07 12:28:02 +03: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
kssenii
335b6f12fd Fix 2021-08-30 20:59:03 +03:00
Zhichang Yu
ef1994f420 set env LIBHDFS3_CONF, refers to ClickHouse#8159 2021-08-28 09:16:48 +08:00
kssenii
0ec716292c Postgres ON CONFLICT 2021-08-24 12:37:32 +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
adevyatova
fcf3413ac9 Small fixes 2021-08-18 13:40:09 +00:00
adevyatova
4fb4387180 Added examples 2021-08-18 13:32:34 +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
be8d87029c Add templates 2021-08-15 13:53:49 +00: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
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
olgarev
7673247b4e Quotes and link fixed for s3, section headings for hdfs 2021-08-04 05:19:31 +00:00
Dmitriy
ad4d05d7ca Fix links
Поправил ссылки.
2021-08-03 21:44:30 +03:00
Dmitriy
612f42e301 Add the brief description
Добавил краткое описание, параметры движка.
2021-08-03 21:09:58 +03:00
Kseniia Sumarokova
5d3abc14c7
Merge pull request #22045 from OmarBazaraa/mongo-ssl
Support SSL connection in MongoDB engine
2021-08-03 08:29:34 +03:00
olgarev
f9658d2205 Wrong backticks 2021-08-02 22:52:01 +00:00
Dmitriy
d6b5838282 Delete the introductory sentence
Удалил неверное предложение.
2021-08-02 23:16:23 +03:00
Dmitriy
387136dc84 Add settings
Добавил настройки, перевел табличный движок MaterializedPostgreSQL.
2021-08-02 22:45:01 +03:00
olgarev
b1320ead65 Replication is supported now 2021-08-02 17:19:21 +00:00
olgarev
6c05a0c8dc Docs for S3 2021-08-01 03:10:31 +00:00
olgarev
f86829ebf4 Docs for HDFS 2021-08-01 02:55:24 +00:00
Alexey Milovidov
df3be36758 Remove trailing whitespaces from docs 2021-07-29 18:27:50 +03:00
Alexey Milovidov
d87d833691 Remove trailing whitespaces from docs 2021-07-29 18:20:55 +03:00
OmarBazaraa
fea1a5d321 Refactor 2021-07-28 09:38:34 +00:00
OmarBazaraa
7e785d6b12 Docs 2021-07-28 09:38:34 +00:00
Azat Khuzhin
8ef677b15f Add ability to set any rocksdb option via config.xml
v2: Cover rocksdb options in ClickHouse config
v3: add missing __init__.py
v4: Rework rocksdb options from config
v5: add column_family_options support
2021-07-27 08:40:50 +03:00
Azat Khuzhin
c7d2a5aad8 Add system.rocksdb table (with various rocksdb internals)
v2: fix USE_ROCKSDB check (there is #cmakedefine01 so it is either 0/1,
so we should not check with #ifdef)
2021-07-26 23:13:59 +03:00
Jeffrey Dang
c09fa0b843
Update materialized-postgresql.md
Spelling
2021-07-13 10:56:07 -05:00
kssenii
4c8d82001f Fix checks 2021-07-01 17:52:21 +00:00
kssenii
4ad0f45f0e Some more tests 2021-07-01 08:35:28 +00:00
kssenii
9d5847a1a8 Merge branch 'master' of https://github.com/ClickHouse/ClickHouse into pg-ch-replica 2021-06-29 21:30:31 +00:00
Dmitriy
375965fb7a Update ExternalDistributed.md
Убрал поддержку запросов на вставку.
2021-06-27 23:45:05 +03:00
kssenii
c3a2fc0584 Review fixes 2021-06-27 19:17:17 +00:00
Dmitriy
253f249f3d Add links
Добавил ссылку на настройку external_table_functions_use_nulls.
2021-06-27 20:57:46 +03:00
Dmitriy
7a95569d90 Merge remote-tracking branch 'remotes/clickhouse/master' into sevirov-DOCSUP-8324-document_the_support_of_replicas_and_shards_in_mysql_postgresql 2021-06-27 20:44:12 +03:00
Dmitriy
c379a0b226 Update mysql and postgresql engines
Внес небольшие поправки.
2021-06-27 20:35:53 +03:00
Dmitriy
07afd0746b Replace links
Заменил линки в cast.
2021-06-27 14:07:24 +03:00
Dmitriy
45a4ea7a68 Delete the external_table_functions_use_nulls setting
Удалил настройку external_table_functions_use_nulls из описания движка ExternalDistributed.
2021-06-27 14:01:51 +03:00
sevirov
6efe22d67e
Update docs/en/engines/table-engines/integrations/postgresql.md
Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>
2021-06-27 12:26:03 +03:00