Commit Graph
95 Commits
Author SHA1 Message Date
Bharat Nallan Chakravarthy 9e0ec8960f few small fixes 2025-04-28 12:59:27 -07:00
Bharat Nallan Chakravarthy 9fe1de3b83 fix incorrect type 2025-04-27 13:11:08 -07:00
Bharat Nallan Chakravarthy eef9126f33 minor fix to mutex initialization 2025-04-24 19:56:50 -07:00
Sachin Singh 26fba5d1d7 Thread safe queries_per_connection 2025-04-24 17:23:03 +05:30
Sachin Singh 67059d47b7 Add docs 2025-04-23 18:25:04 +05:30
Sachin Singh cb431a3c30 Add an option to reconnect every N queries in clickhouse-benchmark 2025-04-23 17:58:46 +05:30
Alexey Milovidov 77176a8c29 clickhouse-benchmark will display percentage based on the max iterations if specified 2025-04-19 21:25:14 +02:00
Konstantin Bogdanov 678acbafdc Fix OpenSSL early init 2025-04-10 21:33:00 +02:00
Todd Yocum b376b7a13b Remove some draft only comments. 2025-02-28 10:38:53 -05:00
Todd YocumandGitHub 1032d30b70 Merge branch 'ClickHouse:master' into tyocum/add-bind_host-remote-servers-setting 2025-02-26 16:13:40 -05:00
Shaun Struwig 76d00ad1af docs/en -> /docs 2025-02-22 21:41:35 +01:00
Sema ChecherindaandGitHub 201c287966 Merge branch 'master' into tyocum/add-bind_host-remote-servers-setting 2025-02-07 20:45:15 +01:00
Azat Khuzhin 8730176431 clickhouse-benchmark: fix data race for writing logs 2025-02-06 13:42:09 +01:00
Todd Yocum 228a25a678 [WIP] Very draft, partially complete bind_host implementation 2025-01-17 14:28:56 -05:00
Sema Checherinda 6ba8afc443 fix benchmark 2024-11-17 11:52:51 +01:00
Alexey Milovidov 2ddd45cd03 Add a test 2024-11-14 00:11:03 +01:00
Alexey Milovidov 455d362904 Fix clickhouse-benchmark 2024-11-13 23:33:37 +01:00
Konstantin Bogdanov 67c1e89d90 Apply linter changes 2024-10-06 12:29:20 +02:00
Raúl Marín f3df7bd171 Hide Settings implementation 2024-09-18 15:48:02 +02:00
Yakov Olkhovskiy 2794b7bf84 defaults to notchunked, add docs to server's and client's configs 2024-07-10 00:20:11 +00:00
Yakov Olkhovskiy 9db80a6e2d more testing with chunked 2024-07-09 17:47:05 +00:00
Yakov Olkhovskiy 94bc0a1e96 add config parameters and client arguments, make default notchunked_optional 2024-05-23 22:01:32 +00:00
Anton Popov 960440e59a add option query_id_prefix to clickhouse-benchmark 2024-05-03 16:44:12 +00:00
Raúl Marín de855ca917 Reduce header dependencies 2024-03-19 17:04:29 +01:00
Alexey Milovidov cbf5443585 Remove old code 2024-03-04 00:11:55 +01:00
Igor Nikonov b85a68790a Cleanup: connection pool priority -> config priority
- names were creating confusion between config priority and balancing priority for a reader
2024-02-16 14:39:41 +00:00
Azat Khuzhin 7fb31fe160 Remove ability to disable generic clickhouse components
Components like client/server/... are very generic, and there is no
point in disabling them, since it does not reduce amount of compiled
code a lot anyway (just a few modules for entrypoints, everything else
is already included in the clickhouse binary), and eventually they are
just symlinks to the clickhouse binary.

But there are few, that requires extra libraries, like ODBC bridge or
keeper components (and there is also standalone keeper binary compiled
with musl), those had been kept.

Also add some descriptions for some utils and change exit code to 0 for
--help.

Signed-off-by: Azat Khuzhin <[email protected]>
2024-02-12 11:10:00 +01:00
Alexey Milovidov 6bb181ce55 Looking at strange code 2023-12-23 13:06:34 +01:00
Raúl Marín b269f87f4c Better text_log with ErrnoException 2023-12-15 19:27:56 +01:00
Alexey Milovidov d56cbda185 Add metrics for the number of queued jobs, which is useful for the IO thread pool 2023-11-18 19:07:59 +01:00
Azat Khuzhin 8782873e4f Fix overrides via connections_credentials in case of root directives exists
Before the following did not work, it always uses user `dev`, even with
`clickhouse-client --connection prod`:

  ```yaml
  user: dev

  connections_credentials:
    prod:
      name: prod
      user: prod
  ```

The problem was that before it was not possible to distinguish options
that had been set via command line options and via configuration file.

I've splitted this two actions, and embedded a call to
parseConnectionsCredentials() in between.

Signed-off-by: Azat Khuzhin <[email protected]>
2023-10-27 20:03:50 +02:00
Alexey Gerasimchuck 3140958132 Added client_info validation 2023-08-22 03:52:57 +00:00
Alexey Milovidov 38a391ef57 Fix tidy 2023-08-12 16:34:35 +02:00
Alexey Milovidov 45655928d1 clickhouse-benchmark: connect in parallel 2023-08-10 23:39:06 +02:00
Alexey MilovidovandGitHub 98ae9be734 Revert "Added tests for ClickHouse apps help and fixed help issues" 2023-04-21 01:54:34 +03:00
Yatsishin Ilya b5b65d2149 Merge remote-tracking branch 'origin' into clickhouse-help 2023-04-11 11:24:48 +00:00
Azat Khuzhin f38a7aeabe ThreadPool metrics introspection
There are lots of thread pools and simple local-vs-global is not enough
already, it is good to know which one in particular uses threads.

Signed-off-by: Azat Khuzhin <[email protected]>
2023-03-29 10:46:59 +02:00
Yatsishin Ilya 80857638c1 Merge remote-tracking branch 'origin/master' into clickhouse-help 2023-02-22 13:58:17 +00:00
Robert Schulze 84b9ff450f Fix terribly broken, fragile and potentially cyclic linking
Sorry for the clickbaity title. This is about static method
ConnectionTimeouts::getHTTPTimeouts(). It was be declared in header
IO/ConnectionTimeouts.h, and defined in header
IO/ConnectionTimeoutsContext.h (!). This is weird and caused issues with
linking on s390x (##45520). There was an attempt to fix some
inconsistencies (#45848) but neither did @Algunenano nor me at first
really understand why the definition is in the header.

Turns out that ConnectionTimeoutsContext.h is only #include'd from
source files which are part of the normal server build BUT NOT part of
the keeper standalone build (which must be enabled via CMake
-DBUILD_STANDALONE_KEEPER=1). This dependency was not documented and as
a result, some misguided workarounds were introduced earlier, e.g.
https://github.com/ClickHouse/ClickHouse/pull/38475/commits/0341c6c54bd7ac77200b4ca123208b195514ef20

The deeper cause was that getHTTPTimeouts() is passed a "Context". This
class is part of the "dbms" libary which is deliberately not linked by
the standalone build of clickhouse-keeper. The context is only used to
read the settings and the "Settings" class is part of the
clickhouse_common library which is linked by clickhouse-keeper already.

To resolve this mess, this PR

- creates source file IO/ConnectionTimeouts.cpp and moves all
  ConnectionTimeouts definitions into it, including getHTTPTimeouts().

- breaks the wrong dependency by passing "Settings" instead of "Context"
  into getHTTPTimeouts().

- resolves the previous hacks
2023-02-05 20:49:34 +00:00
Yatsishin Ilya f4cfd8a2d9 Merge remote-tracking branch 'origin' into clickhouse-help 2023-02-03 20:08:23 +00:00
Nikita MikhaylovandGitHub 33877b5e00 Parallel replicas. Part [2] (#43772) 2023-02-03 14:34:18 +01:00
Yatsishin Ilya 98edb9f06b Update help for clickhouse tools and add test 2023-01-31 12:19:37 +00:00
Alexander Tokmakov 3f6594f4c6 forbid old ctor of Exception 2023-01-23 22:18:05 +01:00
Alexey Milovidov d4864c7d38 Better command line argument name in clickhouse-benchmark 2022-12-24 20:40:23 +01:00
a8faf196c4 Add --max-consecutive-errors for clickhouse-benchmark (#43344)
* Align Benchmark::Benchmark()

Signed-off-by: Azat Khuzhin <[email protected]>

* Add --max-consecutive-errors for clickhouse-benchmark

Unlike --continue_on_errors, it will not leave the benchmark forever if
server is unavailable.

Signed-off-by: Azat Khuzhin <[email protected]>

Signed-off-by: Azat Khuzhin <[email protected]>
Co-authored-by: Nikita Taranov <[email protected]>
2022-12-07 14:51:16 +01:00
Robert Schulze e8b3f56733 Limit suppression to a specific warning 2022-08-21 18:24:17 +00:00
Alexey Milovidov 74e1f4dc61 Fix clang-tidy 2022-08-20 17:09:20 +02:00
Alexey Milovidov e774d28c43 Fix style 2022-08-14 04:16:48 +02:00
Alexey Milovidov 53ce2986de Display server-side time in clickhouse-benchmark by default 2022-08-14 03:33:42 +02:00
Yakov Olkhovskiy 2e34b384c1 update tcp protocol, add quota_key 2022-08-03 15:44:08 -04:00