Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MB-39525 Do not accept cpu or memory profile names in settings endpoint
BP of MB-39735 to MH The profile names will be defaulted to "indexer_cpu.pprof", "indexer_mem.pprof", "projector_cpu.pprof", "projector_mem.pprof" Additionally, the user can specify a directory where these files can go to using the options: "cpuProfDir", "memProfDir". Note that the directory should exist and has write permissions for couchbase user. Otherwise, the call would silently fail. Sample usage: curl -u <username>:<password> http://localhost:9102/settings -X POST -d '{"indexer.settings.cpuProfile":true, "indexer.settings.cpuProfDir":"logs/"}' Change-Id: Ie17bae353c93776980825529b5d239b5f04db8e0 (cherry picked from commit 3081e22)
- Loading branch information
Showing
3 changed files
with
62 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters