<?xml version="1.0"?>
<!-- ClickHouse Sentry 配置 -->
<clickhouse>
    <!-- 日志级别 -->
    <logger>
        <level>warning</level>
        <console>true</console>
    </logger>

    <!-- 内存限制 -->
    <max_server_memory_usage_to_ram_ratio>0.8</max_server_memory_usage_to_ram_ratio>

    <!-- 查询限制 -->
    <max_concurrent_queries>100</max_concurrent_queries>

    <!-- 连接数限制 -->
    <max_connections>4096</max_connections>

    <!-- 压缩配置 -->
    <compression>
        <case>
            <min_part_size>10000000000</min_part_size>
            <min_part_size_ratio>0.01</min_part_size_ratio>
            <method>lz4</method>
        </case>
    </compression>
</clickhouse>
