[ClusterLabs] Why shouldn't one store resource configuration in the CIB?

Ferenc Wágner wferi at niif.hu
Thu Apr 13 12:11:14 EDT 2017


Hi,

I encountered several (old) statements on various forums along the lines
of: "the CIB is not a transactional database and shouldn't be used as
one" or "resource parameters should only uniquely identify a resource,
not configure it" and "the CIB was not designed to be a configuration
database but people still use it that way".  Sorry if I misquote these,
I go by my memories now, I failed to dig up the links by a quick try.

Well, I've been feeling guilty in the above offenses for years, but it
worked out pretty well that way which helped to suppress these warnings
in the back of my head.  Still, I'm curious: what's the reason for these
warnings, what are the dangers of "abusing" the CIB this way?
/var/lib/pacemaker/cib/cib.xml is 336 kB with 6 nodes and 155 resources
configured.  Old Pacemaker versions required tuning PCMK_ipc_buffer to
handle this, but even the default is big enough nowadays (128 kB after
compression, I guess).

Am I walking on thin ice?  What should I look out for?
-- 
Thanks,
Feri




More information about the Users mailing list