Metrics gathering
Adding and testing the vlogger sidecar
Vertica provides the vlogger image that sends logs from vertica.log
to standard output on the host node for log aggregation.
To add the sidecar to the CR, add an element to the spec.sidecars
definition:
To test the sidecar, run the following command and verify that it returns logs:
Generating core files
In some circumstances, you might need to examine a core file that contains information about the Vertica server container process.
Vertica server container process
The following steps generate a core file for the Vertica server process:
-
Use the
securityContext
value to set theprivileged
property totrue
: -
On the host machine, verify that
/proc/sys/kernel/core_pattern
is set tocore
:The
/proc/sys/kernel/core_pattern
file is not namespaced, so setting this value affects all containers running on that host.
When Vertica generates a core, the machine writes a message to vertica.log
that indicates where you can locate the core file.
OpenShift core files
If you want to generate a core file in OpenShift, you must add the SYS_PTRACE
capability in the CR to collect vstacks:
-
Use the
securityContext
value to set thecapabilities.add
property to["SYS_PRTRACE"]
: -
Apply the changes:
-
Get a shell in the container and execute
vstack
as the superuser: