Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
enoch
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DevOps
enoch
Commits
1f79d4a4
Commit
1f79d4a4
authored
May 19, 2022
by
meng.cheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加监控
parent
1525d70c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
main.go
main.go
+1
-1
No files found.
main.go
View file @
1f79d4a4
...
@@ -84,7 +84,7 @@ func handlerKafkaMsg() {
...
@@ -84,7 +84,7 @@ func handlerKafkaMsg() {
//TODO 可优化成Raft算法,目前是固定节点的
//TODO 可优化成Raft算法,目前是固定节点的
func
isMaster
()
bool
{
func
isMaster
()
bool
{
//开发环境,但InfluxDb的Ip是生产环境ip的时候,不执行初始化操作
//开发环境,但InfluxDb的Ip是生产环境ip的时候,不执行初始化操作
if
global
.
IsDev
()
&&
strings
.
Contains
(
global
.
InfluxDbAddress
,
"172.
16
"
)
{
if
global
.
IsDev
()
&&
strings
.
Contains
(
global
.
InfluxDbAddress
,
"172.
20
"
)
{
return
false
return
false
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment