forked from ycrash/yc-360-script
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconst.go
More file actions
34 lines (29 loc) · 1.46 KB
/
const.go
File metadata and controls
34 lines (29 loc) · 1.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
package shell
import (
"time"
)
// ------------------------------------------------------------------------------
// Customer specific Properties
// ------------------------------------------------------------------------------
// ------------------------------------------------------------------------------
// Generic Properties
// ------------------------------------------------------------------------------
var (
SCRIPT_VERSION = "yc_agent_1.0.6"
SCRIPT_SPAN = 120 // How long the whole script should take. Default=240
JAVACORE_INTERVAL = 30 // How often javacores should be taken. Default=30
TOP_INTERVAL = 60 // How often top data should be taken. Default=60
TOP_DASH_H_INTERVAL = 5 // How often top dash H data should be taken. Default=5
VMSTAT_INTERVAL = 5 // How often vmstat data should be taken. Default=5
)
// ------------------------------------------------------------------------------
// * All values are in seconds.
// * All the 'INTERVAL' values should divide into the 'SCRIPT_SPAN' by a whole
// integer to obtain expected results.
// * Setting any 'INTERVAL' too low (especially JAVACORE) can result in data
// that may not be useful towards resolving the issue. This becomes a problem
// when the process of collecting data obscures the real issue.
// ------------------------------------------------------------------------------
func NowString() string {
return time.Now().Format("Mon Jan 2 15:04:05 MST 2006 ")
}