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