File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -14,4 +14,4 @@ while [[ $(kubectl get pods -l app=web-show -o 'jsonpath={..status.conditions[?(
14
14
15
15
kill $( lsof -t -i:8081) 2>&1 > /dev/null | True
16
16
17
- nohup kubectl port-forward svc/web-show 8081:8081 2>&1 &
17
+ nohup kubectl port-forward svc/web-show --address 0.0.0.0 8081:8081 2>&1 &
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ func (p *PingD) Key() interface{} {
21
21
func (p * PingD ) SetPosition (_ int ) {}
22
22
23
23
func (s * Server ) startPing () {
24
- ticker := time .NewTicker (10 * time .Second )
24
+ ticker := time .NewTicker (1 * time .Second )
25
25
log .Info ("start ping" )
26
26
for {
27
27
select {
@@ -33,7 +33,7 @@ func (s *Server) startPing() {
33
33
continue
34
34
}
35
35
pinger .SetPrivileged (true )
36
- pinger .Timeout = 5 * time .Second
36
+ pinger .Timeout = 1 * time .Second
37
37
pinger .Count = 1
38
38
pinger .Run () // blocks until finished
39
39
stats := pinger .Statistics ()
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ func SetupServer(conf *Config) Server {
20
20
21
21
server := Server {
22
22
router : r ,
23
- pingData : queue .NewListQueue (200 ),
23
+ pingData : queue .NewListQueue (360 ),
24
24
conf : conf ,
25
25
}
26
26
You can’t perform that action at this time.
0 commit comments