Browse Source

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>
Jan Friesse 11 years ago
parent
commit
177ef0e524
2 changed files with 6 additions and 5 deletions
  1. 4 3
      exec/main.c
  2. 2 2
      man/corosync.8

+ 4 - 3
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;

+ 2 - 2
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.