Heets has two configuration files.
It's application configuration file.
# Server port
port:
get_http: 55200
set_http: 55201
api_http: 55202
# Cache
cache:
default_expires: 60
# Cluster
#cluster:
# port: 55210
# nodes:
# - 192.168.100.1
# - 192.168.100.2
- Heets has three server. One is a getter server, another is setter server, and the other is restful API server. You can edit server port.
- Heets is simple cache server. default_expires is used when you did not set expiration time for setting data.
- Heets support clustering. You can cluster node by adding nodes IP.
- If you want to use clustering nodes, uncomment cluster configuration and add nodes IP.
It's Logback configuration file that is famous logging library.
- You can send error log to Telegram.
- Uncomment Telegram configuration.
- Set value of
<botToken>
and<chatId>
.<appender name="TELEGRAM" class="com.github.paolodenti.telegram.logback.TelegramAppender"> <botToken></botToken> <chatId></chatId> ... </appender>
- Insert
<appender-ref ref="TELEGRAM"/>
into<root>
<root level="WARN"> <appender-ref ref="FILE"/> <appender-ref ref="TELEGRAM"/> </root>
- You can send error log to Slack.
- Uncomment Slack configuration.
- Set value of
<webhookUri>
.<appender name="SLACK_SYNC" class="com.github.maricn.logback.SlackAppender"> <webhookUri></webhookUri> ... </appender>
- Insert
<appender-ref ref="SLACK"/>
into<root>
<root level="WARN"> <appender-ref ref="FILE"/> <appender-ref ref="SLACK"/> </root>
- You can reload configuration but need not to restart application.