ClickHouse

Форк
0
/
keeper_config.xml 
85 строк · 3.5 Кб
1
<clickhouse>
2
    <logger>
3
        <!-- Possible levels [1]:
4

5
          - none (turns off logging)
6
          - fatal
7
          - critical
8
          - error
9
          - warning
10
          - notice
11
          - information
12
          - debug
13
          - trace
14

15
            [1]: https://github.com/pocoproject/poco/blob/poco-1.9.4-release/Foundation/include/Poco/Logger.h#L105-L114
16
        -->
17
        <level>trace</level>
18
        <log>/var/log/clickhouse-keeper/clickhouse-keeper.log</log>
19
        <errorlog>/var/log/clickhouse-keeper/clickhouse-keeper.err.log</errorlog>
20
        <!-- Rotation policy
21
             See https://github.com/pocoproject/poco/blob/poco-1.9.4-release/Foundation/include/Poco/FileChannel.h#L54-L85
22
          -->
23
        <size>1000M</size>
24
        <count>10</count>
25
        <!-- <console>1</console> --> <!-- Default behavior is autodetection (log to console if not daemon mode and is tty) -->
26
    </logger>
27

28
    <max_connections>4096</max_connections>
29

30
    <keeper_server>
31
            <tcp_port>9181</tcp_port>
32

33
            <!-- Must be unique among all keeper serves -->
34
            <server_id>1</server_id>
35

36
            <log_storage_path>/var/lib/clickhouse/coordination/logs</log_storage_path>
37
            <snapshot_storage_path>/var/lib/clickhouse/coordination/snapshots</snapshot_storage_path>
38

39
            <coordination_settings>
40
                <operation_timeout_ms>10000</operation_timeout_ms>
41
                <min_session_timeout_ms>10000</min_session_timeout_ms>
42
                <session_timeout_ms>100000</session_timeout_ms>
43
                <raft_logs_level>information</raft_logs_level>
44
                <compress_logs>false</compress_logs>
45
                <!-- All settings listed in https://github.com/ClickHouse/ClickHouse/blob/master/src/Coordination/CoordinationSettings.h -->
46
            </coordination_settings>
47

48
            <!-- enable sanity hostname checks for cluster configuration (e.g. if localhost is used with remote endpoints) -->
49
            <hostname_checks_enabled>true</hostname_checks_enabled>
50
            <raft_configuration>
51
                <server>
52
                    <id>1</id>
53

54
                    <!-- Internal port and hostname -->
55
                    <hostname>localhost</hostname>
56
                    <port>9234</port>
57
                </server>
58

59
                <!-- Add more servers here -->
60

61
            </raft_configuration>
62
    </keeper_server>
63

64

65
    <openSSL>
66
      <server>
67
            <!-- Used for secure tcp port -->
68
            <!-- openssl req -subj "/CN=localhost" -new -newkey rsa:2048 -days 365 -nodes -x509 -keyout /etc/clickhouse-server/server.key -out /etc/clickhouse-server/server.crt -->
69
            <certificateFile>/etc/clickhouse-keeper/server.crt</certificateFile>
70
            <privateKeyFile>/etc/clickhouse-keeper/server.key</privateKeyFile>
71
            <!-- dhparams are optional. You can delete the <dhParamsFile> element.
72
                 To generate dhparams, use the following command:
73
                  openssl dhparam -out /etc/clickhouse-keeper/dhparam.pem 4096
74
                 Only file format with BEGIN DH PARAMETERS is supported.
75
              -->
76
            <dhParamsFile>/etc/clickhouse-keeper/dhparam.pem</dhParamsFile>
77
            <verificationMode>none</verificationMode>
78
            <loadDefaultCAFile>true</loadDefaultCAFile>
79
            <cacheSessions>true</cacheSessions>
80
            <disableProtocols>sslv2,sslv3</disableProtocols>
81
            <preferServerCiphers>true</preferServerCiphers>
82
        </server>
83
    </openSSL>
84

85
</clickhouse>
86

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.