You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: main.go
+8-7Lines changed: 8 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@ package main
2
2
3
3
import (
4
4
"flag"
5
-
"fmt"
5
+
"io"
6
6
"net/http"
7
7
"os"
8
8
"time"
@@ -16,7 +16,6 @@ func init() {
16
16
FullTimestamp: true,
17
17
})
18
18
19
-
log.SetOutput(os.Stdout)
20
19
log.SetLevel(log.TraceLevel)
21
20
}
22
21
@@ -29,13 +28,14 @@ func main() {
29
28
Lbport:=flag.String("port", "7000", "Specify port on which load balancer is launched.")
30
29
LocalServerPort:=flag.Int("srv-port", 8000, "Specify port on which local dev server is launched. (If there are more than 1 server to be launched port number will be incremented by 1 for every local server to be spawned ex. server 0 - :8000; sever 1 - :8001)")
31
30
healthCheck:=flag.Bool("healthCheck", false, "Run health check on external servers from the list")
31
+
healthCheckInterval:=flag.Int("hcInterval", 20, "Specify interval between running health checks on servers in the pool")
0 commit comments