1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-13 07:34:50 +00:00
freebsd-ports/net/pacemaker/files/patch-crmd_pengine.c
Tijl Coosemans dcf4604461 Add net/pacemaker.
Pacemaker is an advanced, scalable High-Availability cluster resource
manager for Linux-HA (Heartbeat) and/or Corosync.

It supports "n-node" clusters with significant capabilities for managing
resources and dependencies.

It will run scripts at initialization, when machines go up or down, when
related resources fail and can be configured to periodically check resource
health.

PR:		208221
Submitted by:	David Shane Holden <dpejesh@yahoo.com>
2016-03-24 15:56:07 +00:00

16 lines
795 B
C

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.
--- crmd/pengine.c.orig 2016-01-14 21:43:08 UTC
+++ crmd/pengine.c
@@ -163,7 +163,7 @@ do_pe_control(long long action,
pe_subsystem->source =
mainloop_add_ipc_client(CRM_SYSTEM_PENGINE, G_PRIORITY_DEFAULT,
- 5 * 1024 * 1024 /* 5Mb */ , NULL, &pe_callbacks);
+ 1024 * 1024 /* 1Mb */ , NULL, &pe_callbacks);
if (pe_subsystem->source == NULL) {
crm_warn("Setup of client connection failed, not adding channel to mainloop");