keentune_target
Introduction
keentune-target is the optimization setting component, which is the only component of KeenTune that needs to be deployed
in business environments. It is used to set optimized settings in dynamic and static tuning workflows, with operations
such as parameter set, get, backup, and rollback.
Prerequisites
Lint & Test
make lint
make test
Build & Install
version=latest make build
make install
Clean up
make clean
Configuration
After install keentune-target by make, we can find configuration file in /etc/keentune/conf/target.conf
[agent]
# Basic Configuration
KeenTune_HOME = /etc/keentune/ ; KeenTune-target install path.
KeenTune_WORKSPACE = /var/keentune/ ; KeenTune-target workspace.
AGENT_PORT = 9873 ; KeenTune-target service port
ORIGINAL_CONF = /var/keentune/OriginalBackup ; Original configuration backup path.
[log]
# Configuration about log
LOGFILE_PATH = /var/log/keentune/target.log ; Log file of target
CONSOLE_LEVEL = INFO ; Console Log level
LOGFILE_LEVEL = DEBUG ; File saved log level
LOGFILE_INTERVAL = 1 ; The interval of log file replacing
LOGFILE_BACKUP_COUNT= 14 ; The count of backup log file
Run
After modify keentune-target configuration file, we can deploy keentune-target and listening to requests as
keentune-target
or depoly keentune-target by systemctl
systemctl start keentune-target
Code Structure
agent
├── agent.go # Entrance of keentune-target
├── common # Common module, includes log, config and tools
├── controller # Service response module
├── domain # Knobs domain
└── target.conf # Configuration file
License
Project License can be found here.
Reference