mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-19 16:20:50 +00:00
Increase queue size and fix tests
This commit is contained in:
parent
34bbf3d9c4
commit
54cd980e13
@ -193,8 +193,8 @@ ORDER BY tuple()"
|
||||
|
||||
# create minio log webhooks for both audit and server logs
|
||||
# use async inserts to avoid creating too many parts
|
||||
./mc admin config set clickminio logger_webhook:ch_server_webhook endpoint="http://localhost:8123/?async_insert=1&wait_for_async_insert=0&async_insert_busy_timeout_min_ms=5000&async_insert_busy_timeout_max_ms=5000&async_insert_max_query_number=1000&async_insert_max_data_size=10485760&query=INSERT%20INTO%20minio_server_logs%20FORMAT%20LineAsString"
|
||||
./mc admin config set clickminio audit_webhook:ch_audit_webhook endpoint="http://localhost:8123/?async_insert=1&wait_for_async_insert=0&async_insert_busy_timeout_min_ms=5000&async_insert_busy_timeout_max_ms=5000&async_insert_max_query_number=1000&async_insert_max_data_size=10485760&query=INSERT%20INTO%20minio_audit_logs%20FORMAT%20LineAsString"
|
||||
./mc admin config set clickminio logger_webhook:ch_server_webhook endpoint="http://localhost:8123/?async_insert=1&wait_for_async_insert=0&async_insert_busy_timeout_min_ms=5000&async_insert_busy_timeout_max_ms=5000&async_insert_max_query_number=1000&async_insert_max_data_size=10485760&query=INSERT%20INTO%20minio_server_logs%20FORMAT%20LineAsString" queue_size=300000
|
||||
./mc admin config set clickminio audit_webhook:ch_audit_webhook endpoint="http://localhost:8123/?async_insert=1&wait_for_async_insert=0&async_insert_busy_timeout_min_ms=5000&async_insert_busy_timeout_max_ms=5000&async_insert_max_query_number=1000&async_insert_max_data_size=10485760&query=INSERT%20INTO%20minio_audit_logs%20FORMAT%20LineAsString" queue_size=300000
|
||||
max_retries=100
|
||||
retry=1
|
||||
|
||||
@ -376,12 +376,7 @@ done
|
||||
|
||||
|
||||
# collect minio audit and server logs
|
||||
has_async_inserts=$(clickhouse-client -q "SELECT count() FROM system.asynchronous_inserts WHERE table = 'minio_audit_logs' OR table = 'minio_server_logs'")
|
||||
if [[ has_async_inserts -eq 1 ]]; then
|
||||
echo "Waiting for async inserts to flush"
|
||||
sleep 5
|
||||
fi
|
||||
|
||||
clickhouse-client -q "SYSTEM FLUSH ASYNC INSERT QUEUE"
|
||||
clickhouse-client -q "SELECT log FROM minio_audit_logs ORDER BY event_time INTO OUTFILE '/test_output/minio_audit_logs.jsonl.zst' FORMAT JSONEachRow"
|
||||
clickhouse-client -q "SELECT log FROM minio_server_logs ORDER BY event_time INTO OUTFILE '/test_output/minio_server_logs.jsonl.zst' FORMAT JSONEachRow"
|
||||
|
||||
|
@ -30,7 +30,9 @@ SELECT count() FROM t_async_inserts_flush;
|
||||
|
||||
SYSTEM FLUSH ASYNC INSERT QUEUE;
|
||||
|
||||
SELECT count() FROM system.asynchronous_inserts;
|
||||
SELECT count() FROM system.asynchronous_inserts
|
||||
WHERE database = currentDatabase() AND table = 't_async_inserts_flush';
|
||||
|
||||
SELECT count() FROM t_async_inserts_flush;
|
||||
|
||||
DROP TABLE t_async_inserts_flush;
|
||||
|
@ -91,5 +91,5 @@ flush1 $TIMEOUT &
|
||||
wait
|
||||
|
||||
${CLICKHOUSE_CLIENT} -q "SYSTEM FLUSH ASYNC INSERT QUEUE"
|
||||
${CLICKHOUSE_CLIENT} -q "SELECT count() FROM system.asynchronous_inserts"
|
||||
${CLICKHOUSE_CLIENT} -q "SELECT count() FROM system.asynchronous_inserts WHERE database = currentDatabase() AND table = 'async_inserts'"
|
||||
${CLICKHOUSE_CLIENT} -q "DROP TABLE IF EXISTS async_inserts";
|
||||
|
Loading…
Reference in New Issue
Block a user