-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
thingsdb.example.conf
168 lines (144 loc) · 4.99 KB
/
thingsdb.example.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
# Welcome to the ThingsDB configuration file
[thingsdb]
#
# ThingsDB will listen for client connections on this port number.
#
#listen_client_port = 9200
#
# Listen for client connections only on a specific interface.
# Use value 0.0.0.0 (or :: for IPv6) to bind to all interfaces.
#
#bind_client_addr = 127.0.0.1
#
# ThingsDB will publish itself to other nodes using this node name. If not set,
# the hostname will be used. This value may also be a valid IP address.
#
#node_name = localhost
#
# ThingsDB will listen for node connections on this port number.
#
#listen_node_port = 9220
#
# Listen for node connections only on a specific interface.
# Use value 0.0.0.0 (or :: for IPv6) to bind to all interfaces.
#
#bind_node_addr = 127.0.0.1
#
# Set the HTTP API port for allowing both JSON and MsgPack POST requests.
# If the port is not set (or 0), then the HTTP API will not enabled.
# default is 0.
#
#http_api_port = 9210
#
# When ip_support is set to ALL, ThingsDB will listen and connect to both IPv4
# and IPv6 addresses.
# Valid options are ALL, IPV4ONLY and IPV6ONLY. Default is ALL.
#
#ip_support = ALL
#
# Period in seconds before shutting down. This window provides clients to
# re-connect to another node. This property is only used when having multiple
# nodes. On a single node this is alway 0, otherwise the default is 6.
#
#shutdown_period = 6
#
# ThingsDB will use this path for storage.
#
#storage_path = /var/lib/thingsdb/
#
# Named PIPE for client connections. Support for client PIPE connections
# will be disabled if the value is not configured.
#
#pipe_client_name = /tmp/ti_client.sock
#
# When the number of events changes stored on disk is equal or greater
# than this threshold, then a full- instead of incremental store will be
# performed when in "away" mode. Default is 1000.
#
#threshold_full_storage = 1000
#
# Result size limit is checked when packing properties for a thing.
# If, at the check moment, the packed data size exceeds the limit, packing
# stops and an error will be returned. This limit is set in bytes and is used
# to prevent a huge amount of data, typically when a high `deep` value is used.
# The default is set to 20.971.520 bytes (20MiB).
#
#result_size_limit = 20971520
#
# When the HTTP status port is not set (or 0), the service will not start.
# Otherwise the HTTP request `/status`, `/ready` and `/healthy` are available
# which can be used for readiness and liveness requests. Default is 0.
#
#http_status_port = 8080
#
# Each node can be placed in a zone which is represented by an integer value
# between `0` and `255`. The default zone is `0`. Zones are used when a query
# is forwarded to another node to out-source some work. The *other* node is
# selected randomly from all available nodes, but nodes in the same zone are
# preferred.
#
#zone = 0
#
# Log a warning message when a query takes more than X second(s).
#
#query_duration_warn = 1.0
#
# Log an error message when a query takes more than X second(s).
#
#query_duration_error = 10.0
#
# Google Cloud storage support for writing backups to a path like:
# gs://bucket/filename.tar.gz
#
# Note that `gcloud` and `gsutil` must be installed before this service can
# be used.
#
#gcloud_key_file = service_account.json
#
# Queries with a length below this threshold will be not be cached
# by ThingsDB.
#
# If not configured, ThingsDB will use a value of 160, so all queries with
# a length of 160 characters or more will be cached by default. (Unless
# caching is disabled, see `cache_expiration_time`)
#
#threshold_query_cache = 160
#
# Cached queries which are not used within the expiration period will be
# removed from the cache. This value sets the expiration time in seconds.
# A value of 0 will disable caching.
#
#cache_expiration_time = 900
#
# ThingsDB modules path.
#
#modules_path = /usr/lib/thingsdb/modules
#
# Load the modules before listening to nodes and clients. This is disabled (0)
# by default which will set ThingsDB "ready" while some modules might be still
# loading or installing in the background. If enabled (1), then ThingsDB will
# first install and load all modules before being available for requests.
#
# Note: this will not guarantee that all modules are "running" as the module
# might also have failed to install or is broken for some other reason.
#
#wait_for_modules = 0
#
# Python Interpreter for running *.py modules. This may be a full path
# like `/usr/bin/python` or just `python`. In the latter case, python will be
# searched using the `PATH` environment variable.
#
#python_interpreter = python
#
# Set the WebSocket port for allowing requests over WebSockets.
# If the port is not set (or 0), then WebSockets will not enabled.
# default is 0. Example connection: ws://host:9270
#
#ws_port = 9270
#
# Configure Secure WebSockets. WebSocket must be enabled by selecting a port
# using the `ws_port` parameter. Both a certificate file and a private key file
# are required. When configures, connections can be made using wss://
#
#ws_cert_file = <your_certificate_file>
#ws_key_file = <your_private_key_file>