summaryrefslogtreecommitdiffstats
path: root/xlators/debug/io-stats
diff options
context:
space:
mode:
authorKrutika Dhananjay <kdhananj@redhat.com>2018-01-23 14:06:10 +0530
committerKrutika Dhananjay <kdhananj@redhat.com>2018-01-26 11:33:18 +0000
commitcd66e4edae84033f426820e359927272ad4ae641 (patch)
tree7176bc9764a969cf12405f79a95abbad5876ae71 /xlators/debug/io-stats
parent6b4432388c112457aa11270736c593664c2f0bc6 (diff)
debug/io-stats: io-stats options for GD2
Updates #302 Change-Id: I8e7ff391cec88ea76f63ffe05b7404bdb31eaf8e Signed-off-by: Krutika Dhananjay <kdhananj@redhat.com>
Diffstat (limited to 'xlators/debug/io-stats')
-rw-r--r--xlators/debug/io-stats/src/io-stats.c54
1 files changed, 54 insertions, 0 deletions
diff --git a/xlators/debug/io-stats/src/io-stats.c b/xlators/debug/io-stats/src/io-stats.c
index 4864c67a101..4ea45b058ae 100644
--- a/xlators/debug/io-stats/src/io-stats.c
+++ b/xlators/debug/io-stats/src/io-stats.c
@@ -4334,6 +4334,9 @@ struct xlator_cbks cbks = {
struct volume_options options[] = {
{ .key = {"dump-fd-stats"},
+ .op_version = {1},
+ .flags = OPT_FLAG_SETTABLE | OPT_FLAG_DOC,
+ .tags = {"io-stats"},
.type = GF_OPTION_TYPE_BOOL,
.default_value = "off",
.description = "If on stats related to file-operations would be "
@@ -4341,6 +4344,9 @@ struct volume_options options[] = {
},
{ .key = { "ios-dump-interval" },
.type = GF_OPTION_TYPE_INT,
+ .op_version = {1},
+ .flags = OPT_FLAG_SETTABLE | OPT_FLAG_DOC,
+ .tags = {"io-stats"},
.min = 0,
.max = 3600,
.default_value = "0",
@@ -4349,6 +4355,9 @@ struct volume_options options[] = {
},
{ .key = { "ios-sample-interval" },
.type = GF_OPTION_TYPE_INT,
+ .op_version = {1},
+ .flags = OPT_FLAG_SETTABLE | OPT_FLAG_DOC,
+ .tags = {"io-stats"},
.min = 0,
.max = 65535,
.default_value = "0",
@@ -4357,6 +4366,9 @@ struct volume_options options[] = {
},
{ .key = {"ios-dump-format"},
.type = GF_OPTION_TYPE_STR,
+ .op_version = {GD_OP_VERSION_3_12_0},
+ .flags = OPT_FLAG_SETTABLE | OPT_FLAG_DOC,
+ .tags = {"io-stats"},
.default_value = "json",
.description = " The dump-format option specifies the format in which"
" to dump the statistics. Select between \"text\", "
@@ -4366,6 +4378,9 @@ struct volume_options options[] = {
},
{ .key = { "ios-sample-buf-size" },
.type = GF_OPTION_TYPE_INT,
+ .op_version = {1},
+ .flags = OPT_FLAG_SETTABLE | OPT_FLAG_DOC,
+ .tags = {"io-stats"},
.min = 1024,
.max = 1024*1024,
.default_value = "65535",
@@ -4373,6 +4388,9 @@ struct volume_options options[] = {
},
{ .key = { "ios-dnscache-ttl-sec" },
.type = GF_OPTION_TYPE_INT,
+ .op_version = {1},
+ .flags = OPT_FLAG_SETTABLE | OPT_FLAG_DOC,
+ .tags = {"io-stats"},
.min = 1,
.max = 3600 * 72,
.default_value = "86400",
@@ -4381,12 +4399,18 @@ struct volume_options options[] = {
},
{ .key = { "latency-measurement" },
.type = GF_OPTION_TYPE_BOOL,
+ .op_version = {1},
+ .flags = OPT_FLAG_SETTABLE | OPT_FLAG_DOC,
+ .tags = {"io-stats"},
.default_value = "off",
.description = "If on stats related to the latency of each operation "
"would be tracked inside GlusterFS data-structures. "
},
{ .key = {"count-fop-hits"},
.type = GF_OPTION_TYPE_BOOL,
+ .op_version = {1},
+ .flags = OPT_FLAG_SETTABLE,
+ .tags = {"io-stats"},
},
{ .key = {"log-level"},
.type = GF_OPTION_TYPE_STR,
@@ -4398,6 +4422,9 @@ struct volume_options options[] = {
* volume set command */
{ .key = {"client-log-level"},
.type = GF_OPTION_TYPE_STR,
+ .op_version = {1},
+ .flags = OPT_FLAG_SETTABLE | OPT_FLAG_CLIENT_OPT | OPT_FLAG_DOC,
+ .tags = {"io-stats"},
.default_value = "INFO",
.description = "Changes the log-level of the clients",
.value = { "DEBUG", "WARNING", "ERROR", "INFO",
@@ -4411,6 +4438,9 @@ struct volume_options options[] = {
},
{ .key = {"brick-log-level"},
.type = GF_OPTION_TYPE_STR,
+ .op_version = {1},
+ .flags = OPT_FLAG_SETTABLE | OPT_FLAG_DOC,
+ .tags = {"io-stats"},
.default_value = "INFO",
.description = "Changes the log-level of the bricks",
.value = { "DEBUG", "WARNING", "ERROR", "INFO",
@@ -4422,6 +4452,9 @@ struct volume_options options[] = {
},
{ .key = {"client-logger"},
.type = GF_OPTION_TYPE_STR,
+ .op_version = {GD_OP_VERSION_3_6_0},
+ .flags = OPT_FLAG_SETTABLE | OPT_FLAG_CLIENT_OPT | OPT_FLAG_DOC,
+ .tags = {"io-stats"},
.default_value = GF_LOGGER_GLUSTER_LOG,
.description = "Changes the logging sub-system to log to, for the "
"clients",
@@ -4429,6 +4462,9 @@ struct volume_options options[] = {
},
{ .key = {"brick-logger"},
.type = GF_OPTION_TYPE_STR,
+ .op_version = {GD_OP_VERSION_3_6_0},
+ .flags = OPT_FLAG_SETTABLE | OPT_FLAG_DOC,
+ .tags = {"io-stats"},
.default_value = GF_LOGGER_GLUSTER_LOG,
.description = "Changes the logging sub-system to log to, for the "
"bricks",
@@ -4440,12 +4476,18 @@ struct volume_options options[] = {
},
{ .key = {"client-log-format"},
.type = GF_OPTION_TYPE_STR,
+ .op_version = {GD_OP_VERSION_3_6_0},
+ .flags = OPT_FLAG_SETTABLE | OPT_FLAG_CLIENT_OPT | OPT_FLAG_DOC,
+ .tags = {"io-stats"},
.default_value = GF_LOG_FORMAT_WITH_MSG_ID,
.description = "Changes log format for the clients",
.value = { GF_LOG_FORMAT_NO_MSG_ID, GF_LOG_FORMAT_WITH_MSG_ID}
},
{ .key = {"brick-log-format"},
.type = GF_OPTION_TYPE_STR,
+ .op_version = {GD_OP_VERSION_3_6_0},
+ .flags = OPT_FLAG_SETTABLE | OPT_FLAG_DOC,
+ .tags = {"io-stats"},
.default_value = GF_LOG_FORMAT_WITH_MSG_ID,
.description = "Changes the log format for the bricks",
.value = { GF_LOG_FORMAT_NO_MSG_ID, GF_LOG_FORMAT_WITH_MSG_ID}
@@ -4458,6 +4500,9 @@ struct volume_options options[] = {
},
{ .key = {"client-log-buf-size"},
.type = GF_OPTION_TYPE_INT,
+ .op_version = {GD_OP_VERSION_3_6_0},
+ .flags = OPT_FLAG_SETTABLE | OPT_FLAG_CLIENT_OPT | OPT_FLAG_DOC,
+ .tags = {"io-stats"},
.min = GF_LOG_LRU_BUFSIZE_MIN,
.max = GF_LOG_LRU_BUFSIZE_MAX,
.default_value = "5",
@@ -4467,6 +4512,9 @@ struct volume_options options[] = {
},
{ .key = {"brick-log-buf-size"},
.type = GF_OPTION_TYPE_INT,
+ .op_version = {GD_OP_VERSION_3_6_0},
+ .flags = OPT_FLAG_SETTABLE | OPT_FLAG_DOC,
+ .tags = {"io-stats"},
.min = GF_LOG_LRU_BUFSIZE_MIN,
.max = GF_LOG_LRU_BUFSIZE_MAX,
.default_value = "5",
@@ -4482,6 +4530,9 @@ struct volume_options options[] = {
},
{ .key = {"client-log-flush-timeout"},
.type = GF_OPTION_TYPE_TIME,
+ .op_version = {GD_OP_VERSION_3_6_0},
+ .flags = OPT_FLAG_SETTABLE | OPT_FLAG_CLIENT_OPT | OPT_FLAG_DOC,
+ .tags = {"io-stats"},
.min = GF_LOG_FLUSH_TIMEOUT_MIN,
.max = GF_LOG_FLUSH_TIMEOUT_MAX,
.default_value = "120",
@@ -4491,6 +4542,9 @@ struct volume_options options[] = {
},
{ .key = {"brick-log-flush-timeout"},
.type = GF_OPTION_TYPE_TIME,
+ .op_version = {GD_OP_VERSION_3_6_0},
+ .flags = OPT_FLAG_SETTABLE | OPT_FLAG_DOC,
+ .tags = {"io-stats"},
.min = GF_LOG_FLUSH_TIMEOUT_MIN,
.max = GF_LOG_FLUSH_TIMEOUT_MAX,
.default_value = "120",