ACK
On 02/01/15 13:07, Jan Friesse wrote:
Experience with larger production clusters showed that setting RR
priority for corosync is viable for prevent random fencing, ...
Signed-off-by: Jan Friesse <[email protected]>
---
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.
_______________________________________________
discuss mailing list
[email protected]
http://lists.corosync.org/mailman/listinfo/discuss