2016-03-24 16:56:07 +01:00
|
|
|
On FreeBSD the maximum IPC buffer size is defined by the kern.ipc.maxsockbuf
|
|
|
|
sysctl which defaults to 2M. This patch simply lowers the max message size
|
|
|
|
in pengine from 5M to 1M to work out of the box without requiring any tuning.
|
|
|
|
|
2017-06-13 16:32:23 +02:00
|
|
|
--- crmd/pengine.c.orig 2016-11-30 19:51:58 UTC
|
2016-03-24 16:56:07 +01:00
|
|
|
+++ crmd/pengine.c
|
2017-06-13 16:32:23 +02:00
|
|
|
@@ -165,7 +165,7 @@ do_pe_control(long long action,
|
2016-03-24 16:56:07 +01:00
|
|
|
|
|
|
|
pe_subsystem->source =
|
|
|
|
mainloop_add_ipc_client(CRM_SYSTEM_PENGINE, G_PRIORITY_DEFAULT,
|
2017-06-13 16:32:23 +02:00
|
|
|
- 5 * 1024 * 1024 /* 5MB */ , NULL, &pe_callbacks);
|
|
|
|
+ 1024 * 1024 /* 1MB */ , NULL, &pe_callbacks);
|
2016-03-24 16:56:07 +01:00
|
|
|
|
|
|
|
if (pe_subsystem->source == NULL) {
|
|
|
|
crm_warn("Setup of client connection failed, not adding channel to mainloop");
|