From 177ef0e5240b4060ff5b14eab6f2eefee3aa777d Mon Sep 17 00:00:00 2001
From: Jan Friesse <jfriesse@redhat.com>
Date: Fri, 2 Jan 2015 12:39:09 +0100
Subject: [PATCH] Set RR priority by default
Experience with larger production clusters showed that setting RR
priority for corosync is viable for prevent random fencing, ...
Signed-off-by: Jan Friesse <jfriesse@redhat.com>
Reviewed-by: Christine Caulfield <ccaulfie@redhat.com>
---
exec/main.c | 7 ++++---
man/corosync.8 | 4 ++--
2 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/exec/main.c b/exec/main.c
index e423c97..cd972b5 100644
--- a/exec/main.c
+++ b/exec/main.c
@@ -1200,7 +1200,7 @@ int main (int argc, char **argv, char **envp)
/* default configuration
*/
background = 1;
- setprio = 0;
+ setprio = 1;
testonly = 0;
while ((ch = getopt (argc, argv, "fprtv")) != EOF) {
@@ -1210,6 +1210,7 @@ int main (int argc, char **argv, char **envp)
background = 0;
break;
case 'p':
+ setprio = 0;
break;
case 'r':
setprio = 1;
@@ -1228,9 +1229,9 @@ int main (int argc, char **argv, char **envp)
fprintf(stderr, \
"usage:\n"\
" -f : Start application in foreground.\n"\
- " -p : Does nothing. \n"\
+ " -p : Do not set process priority.\n"\
" -t : Test configuration and exit.\n"\
- " -r : Set round robin realtime scheduling \n"\
+ " -r : Set round robin realtime scheduling (default).\n"\
" -v : Display version and SVN revision of Corosync and exit.\n");
logsys_system_fini();
return EXIT_FAILURE;
diff --git a/man/corosync.8 b/man/corosync.8
index 559b392..41f634f 100644
--- a/man/corosync.8
+++ b/man/corosync.8
@@ -45,10 +45,10 @@ Corosync provides clustering infracture such as membership, messaging and quorum
Start application in foreground.
.TP
.B -p
-Does nothing (was: "Do not set process priority" - this is now the default).
+Do not set process priority.
.TP
.B -r
-Set round robin realtime scheduling.
+Set round robin realtime scheduling (default).
.TP
.B -t
Test configuration and then exit.
--
1.7.1