Commit Graph

29 Commits

Author SHA1 Message Date
SunnyQjm 24e87db1ee fix(framework): catch_kill_sig_then_kill_all_child should deal zombie process 2024-01-17 06:12:36 +00:00
SunnyQjm ff7af9c80e fix(framework): SysomFramework should kill all child while receive killed signal 2024-01-17 06:12:36 +00:00
SunnyQjm 7a52b99e9d feat(deploy): Support deploy by docker 2024-01-17 06:12:36 +00:00
SunnyQjm d0d769d463 fix(cec): Do not log cec message value 2024-01-17 06:12:36 +00:00
JietaoXiao c30a84fd33 feat(sdk.metric_reader): support instant query and custom promql 2024-01-17 06:12:36 +00:00
SunnyQjm 5d76182247 feat(alert_pusher): Add alert_pusher service
alert_pusher service can be used to push alert data to webhook targets
2024-01-17 06:12:36 +00:00
SunnyQjm d60f4c63c7 feat(gcache): Support load_all 2023-10-26 19:42:52 +08:00
SunnyQjm 6e368768e4 refactor(alarm): Use alarm microservice to implement applicaiton alarm 2023-09-22 15:49:56 +08:00
SunnyQjm fb7ca98bfa fix(alarm): Optimize count query speed 2023-09-21 11:06:22 +08:00
SunnyQjm 3b1cb49460 feat(alarm): Support return StandardListResponse which contains total 2023-09-20 11:53:27 +00:00
SunnyQjm 56588a9ad1 feat(sysom_utils): Add StandardResponse and StandardListResponse 2023-09-20 03:27:41 +00:00
SunnyQjm 215762c802 feat(alarm): Create alarm microservice 2023-09-19 14:40:21 +08:00
SunnyQjm fb1dbd67bd fix(deploy): Database config in /etc/config.yml not effect 2023-08-21 16:04:03 +08:00
SunnyQjm e24c24ecfe fix(channel_job): get_file failed due to base_url not defined 2023-07-31 20:44:42 +08:00
SunnyQjm f20b0e78c8 feat(sdk): Add metric_reader sdk used to read metrics 2023-07-20 17:02:17 +08:00
SunnyQjm df87cd1555 feat(deploy): Support used enviroment variable to control deploy
DEPLOY_ENV_LIST: Used to control the list of environments that need to be installed
DEPLOY_ENV_EXCLUDE: Used to control the list of environments that don't need to be installed

DEPLOY_DEPS_LIST: Used to control the list of deps that need to be installed
DEPLOY_DEPS_EXCLUDE: Used to control the list of deps that don't need to be installed

DEPLOY_SERVER_LIST: Used to control the list of service that need to be installed
DEPLOY_SERVER_EXCLUDE: Used to control the list of service that don't need to be installed

example 1: (The following command will install all envs,deps and serivce except hotfix service):
DEPLOY_SERVER_EXCLUDE=sysom_hotfix,sysom_hotfix_builder ./deploy.sh

example 2: (The following command will install all envs,deps, then only install sysom_api service):
DEPLOY_SERVER_LIST=sysom_api ./deploy.sh
2023-06-27 14:03:31 +08:00
SunnyQjm 4876b42570 fix(rpm): rpm deployment error 2023-06-20 16:45:27 +08:00
SunnyQjm a6091fa875 fix(script): sysom_install.sh missing invoke ensure_conf_exists 2023-06-09 17:10:25 +08:00
SunnyQjm 67c25e84a3 feat(script): Add install.sh and uninstall.sh 2023-06-06 20:57:29 +08:00
SunnyQjm 4c0f89beeb refactor(deploy): Split init script to "deploy.sh" and "init.sh"
1. "deploy.sh": Defines each component deployment phase operation (requires no dependency on other microservices, no dependency on any runtime environment, the main task is file deployment, dependency installation);
2. "init.sh": Contains initialization operations before the program is run for the first time, and can rely on other runtimes, for example, microservices can assume that the database has been started and can perform operations such as database migration;
2023-05-19 11:35:44 +08:00
SunnyQjm e2ad41b6f7 refactor(sysom_api): Use uvicorn to replace daphne 2023-05-17 11:40:41 +08:00
SunnyQjm be4ffed01b feat(channel): Support Support for non-root users to manage nodes
1. Support for managing nodes with non-root users, require target user can run all command without password, you can edit "/etc/sudoers", add the following line. (replace <username> to target username)
  <username>    ALL=(ALL)       NOPASSWD: ALL

2. When channel_job sends a command, it supports specifying that the command does not require root privileges, and when the username is not root, sudo bash -c "" will not be used to wrapper command
2023-05-16 16:36:55 +08:00
SunnyQjm 74a1bcbfcd refactor(framework): Move logger init to SysomFramework.init 2023-05-16 13:54:08 +08:00
SunnyQjm dd65189c08 fix(sdk): Add lock for dispatch_*
To prevent errors caused by concurrent calls to dispatch_*, you need to add a lock to the dispatch_* call
2023-05-15 19:13:16 +08:00
SunnyQjm 793b189b1e fix(sysom_framwork): default_channel_job_executor is initialized without a start 2023-05-12 17:13:32 +08:00
SunnyQjm 154d5d43dd fix(redis_lua): lua script lost after redis restart 2023-05-12 16:41:20 +08:00
SunnyQjm f3cb4ebd05 fix(deploy): Add missing deps 2023-05-11 17:49:36 +08:00
SunnyQjm 9c0025ef27 refactor(deploy): Move local_services and monitor to "deps" dir 2023-05-11 16:35:09 +08:00
SunnyQjm e0435aca2a refactor(sysom): Adjust the directory layout to be compatible with sysom2.1 2023-05-11 15:00:01 +08:00