Skip to content

Debugging

Ioannis Papapanagiotou edited this page Dec 21, 2018 · 3 revisions

Logging

You can use the admin port to increase the log level in order to identify the root cause of an issue. The following curl call will increase the log level. The default is 5.

$ curl http:https://localhost:22222/loglevelup

Note that the higher the log level, there is a performance hit from writing logs. This is though only valid if Dynomite receives multiple thousands of OPS. To decrease the log level.

$ curl http:https://localhost:22222/logleveldown

Core dumps

It is also advisable to capture core dumps in order to further debug a problem with the Dynomite process. One way to do that is to add a core dump path when starting Dynomite

# Sending the core files to /mnt/data for larger space
CORE_DIR=/mnt/data/core-dumps
sudo mkdir -p $CORE_DIR
sudo chown -R $userowner:$groupowner $CORE_DIR
sudo echo "$CORE_DIR/core_%e.%p.%t" > /proc/sys/kernel/core_pattern