Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PLAT-15279] Add gzip compression to core dumps from DB.
Summary: Add gzip compression to core dumps on DB nodes. We are updating core pattern to contain a script that takes coredump on stdout and writes a gz compressed core dump to /home/yugabyte/cores directory. Sample core ``` /home/yugabyte/cores/core.yb-master.47462.51733.gz ``` Test Plan: Tested on the node by deploying on aws provider. ``` -rw-r--r--. 1 root root 6.8M Sep 26 01:37 core.yb-master.186280.189968.gz drwxr-xr-x. 6 yugabyte yugabyte 83 Sep 26 01:39 .. drwxr-xr-x. 2 yugabyte yugabyte 273 Sep 26 01:40 . [yugabyte@ip-10-9-71-23 cores]$ fie core.yb-master.186280.189968.gz^C [yugabyte@ip-10-9-71-23 cores]$ file core.yb-master.186280.189968.gz core.yb-master.186280.189968.gz: gzip compressed data, last modified: Thu Sep 26 01:37:51 2024, from Unix, original size 195506176 ``` After unzip ``` -rw-r--r--. 1 yugabyte yugabyte 187M Sep 26 01:37 core.yb-master.186280.189968 ``` Triggered a core on yb-master manually. ``` yugabyte@ip-10-9-75-132 ~]$ ps -ef | grep master yugabyte 47462 30356 0 02:47 ? 00:00:01 /home/yugabyte/master/bin/yb-master --flagfile /home/yugabyte/master/conf/server.conf yugabyte 51729 51683 0 02:51 pts/0 00:00:00 grep --color=auto master [yugabyte@ip-10-9-75-132 ~]$ kill -11 47462 [yugabyte@ip-10-9-75-132 ~]$ ls -lahtr total 6.6M drwxr-xr-x. 6 yugabyte yugabyte 83 Sep 26 02:48 .. drwxr-xr-x. 2 yugabyte yugabyte 43 Sep 26 02:51 . -rw-r--r--. 1 root root 6.6M Sep 26 02:51 core.yb-master.47462.51733.gz [yugabyte@ip-10-9-75-132 ~]$ kill -11 47462 ``` Reviewers: sanketh, svarshney, nbhatia, muthu Reviewed By: svarshney, muthu Subscribers: svc_phabricator, yugaware Differential Revision: https://phorge.dev.yugabyte.com/D38105
- Loading branch information