Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
oceanbase
obagent
提交
e0b6599a
O
obagent
项目概览
oceanbase
/
obagent
1 年多 前同步成功
通知
3
Star
15
Fork
4
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
O
obagent
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
e0b6599a
编写于
3月 01, 2023
作者:
C
chris-sun-star
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix resource problem, delete GO_RACE_FLAG when compile, set GCPercent to 500
上级
81ad06b7
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
5 addition
and
1 deletion
+5
-1
Makefile.common
Makefile.common
+0
-1
cmd/monagent/main.go
cmd/monagent/main.go
+4
-0
config/config_common.go
config/config_common.go
+1
-0
未找到文件。
Makefile.common
浏览文件 @
e0b6599a
...
@@ -11,7 +11,6 @@ GOCOVERAGE_FILE := tests/coverage.out
...
@@ -11,7 +11,6 @@ GOCOVERAGE_FILE := tests/coverage.out
GOCOVERAGE_REPORT
:=
tests/coverage-report
GOCOVERAGE_REPORT
:=
tests/coverage-report
GOTEST
:=
OB_AGENT_CONFIG_PATH
=
$(PWD)
$(GO)
test
-tags
test
-covermode
=
count
-coverprofile
=
$(GOCOVERAGE_FILE)
-p
$(PROCESSOR)
GOTEST
:=
OB_AGENT_CONFIG_PATH
=
$(PWD)
$(GO)
test
-tags
test
-covermode
=
count
-coverprofile
=
$(GOCOVERAGE_FILE)
-p
$(PROCESSOR)
GO_RACE_FLAG
=
-race
LDFLAGS
+=
-X
"github.com/oceanbase/obagent/config.AgentVersion=
${VERSION}
"
LDFLAGS
+=
-X
"github.com/oceanbase/obagent/config.AgentVersion=
${VERSION}
"
#LDFLAGS += -X "github.com/oceanbase/obagent/config.ReleaseVersion=$(shell git describe --tags --dirty --always)"
#LDFLAGS += -X "github.com/oceanbase/obagent/config.ReleaseVersion=$(shell git describe --tags --dirty --always)"
LDFLAGS
+=
-X
"github.com/oceanbase/obagent/config.BuildTimestamp=
$(
shell
date -u '+%Y-%m-%d %H:%M:%S'
)
"
LDFLAGS
+=
-X
"github.com/oceanbase/obagent/config.BuildTimestamp=
$(
shell
date -u '+%Y-%m-%d %H:%M:%S'
)
"
...
...
cmd/monagent/main.go
浏览文件 @
e0b6599a
...
@@ -17,6 +17,8 @@ import (
...
@@ -17,6 +17,8 @@ import (
"os"
"os"
"time"
"time"
"runtime/debug"
"github.com/pkg/errors"
"github.com/pkg/errors"
log
"github.com/sirupsen/logrus"
log
"github.com/sirupsen/logrus"
"github.com/spf13/cobra"
"github.com/spf13/cobra"
...
@@ -48,6 +50,8 @@ var (
...
@@ -48,6 +50,8 @@ var (
)
)
func
init
()
{
func
init
()
{
debug
.
SetGCPercent
(
config
.
GCPercent
)
// monagent server config file
// monagent server config file
monagentCommand
.
PersistentFlags
()
.
StringP
(
"config"
,
"c"
,
"conf/monagent.yaml"
,
"config file"
)
monagentCommand
.
PersistentFlags
()
.
StringP
(
"config"
,
"c"
,
"conf/monagent.yaml"
,
"config file"
)
// plugins config use dir, all yaml files in the dir will be used as plugin config file
// plugins config use dir, all yaml files in the dir will be used as plugin config file
...
...
config/config_common.go
浏览文件 @
e0b6599a
...
@@ -28,6 +28,7 @@ type Process = string
...
@@ -28,6 +28,7 @@ type Process = string
const
(
const
(
ProcessMonitorAgent
Process
=
"monagent"
ProcessMonitorAgent
Process
=
"monagent"
GCPercent
int
=
500
)
)
type
InstallConfig
struct
{
type
InstallConfig
struct
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录