Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
scheduler
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Odysseus
scheduler
Commits
5af25f2f
Commit
5af25f2f
authored
Mar 07, 2024
by
vicotor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update config.
parent
599bbdfe
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
9 deletions
+0
-9
config.toml
config.toml
+0
-1
Config.go
config/Config.go
+0
-1
node.go
server/node.go
+0
-7
No files found.
config.toml
View file @
5af25f2f
endpoint
=
"127.0.0.1:10002"
metrics_port
=
28012
routines
=
1
max_nm_update_ex
=
40
...
...
config/Config.go
View file @
5af25f2f
...
...
@@ -26,7 +26,6 @@ type MysqlConfig struct {
}
type
Config
struct
{
Endpoint
string
`json:"endpoint" toml:"endpoint"`
MetricPort
int
`json:"metrics_port" toml:"metrics_port"`
Routines
int
`json:"routines" toml:"routines"`
MaxNmUpdateEx
int
`json:"max_nm_update_ex" toml:"max_nm_update_ex"`
...
...
server/node.go
View file @
5af25f2f
...
...
@@ -4,7 +4,6 @@ import (
"context"
"encoding/json"
"errors"
"fmt"
"github.com/IBM/sarama"
"github.com/gogo/protobuf/proto"
"github.com/odysseus/cache/cachedata"
...
...
@@ -17,7 +16,6 @@ import (
"github.com/odysseus/service-registry/registry"
"github.com/redis/go-redis/v9"
log
"github.com/sirupsen/logrus"
"os"
"strconv"
"strings"
"sync"
...
...
@@ -43,11 +41,6 @@ func (n *Node) Status() string {
return
n
.
status
}
func
(
n
*
Node
)
Instance
()
string
{
hname
,
_
:=
os
.
Hostname
()
return
fmt
.
Sprintf
(
"%s:%d"
,
hname
,
n
.
conf
.
Endpoint
)
}
func
(
n
*
Node
)
DetailInfo
()
(
json
.
RawMessage
,
error
)
{
info
:=
query
.
SchedulerInfo
{}
return
json
.
Marshal
(
info
)
...
...
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