[Heimdal-source-changes] [heimdal/heimdal] 5cda8b: Add hdb_set_sync() method

Nico Williams noreply at github.com
Ons May 22 18:43:49 CEST 2019


  Branch: refs/heads/jaltman/heimdal-7.x-pullups
  Home:   https://github.com/heimdal/heimdal
  Commit: 5cda8b61aa47105e2713f0a4f7037540d0eca638
      https://github.com/heimdal/heimdal/commit/5cda8b61aa47105e2713f0a4f7037540d0eca638
  Author: Nicolas Williams <nico at twosigma.com>
  Date:   2019-05-22 (Wed, 22 May 2019)

  Changed paths:
    M lib/hdb/db.c
    M lib/hdb/db3.c
    M lib/hdb/hdb-ldap.c
    M lib/hdb/hdb-mdb.c
    M lib/hdb/hdb-mitdb.c
    M lib/hdb/hdb-sqlite.c
    M lib/hdb/hdb.h

  Log Message:
  -----------
  Add hdb_set_sync() method

(cherry picked from commit 5bcbe2125b18160f6ad348b15f8036ffedc15770)


  Commit: 8cc8c37f3f664d8b71860d9a17d725763dca637e
      https://github.com/heimdal/heimdal/commit/8cc8c37f3f664d8b71860d9a17d725763dca637e
  Author: Nicolas Williams <nico at twosigma.com>
  Date:   2019-05-22 (Wed, 22 May 2019)

  Changed paths:
    M lib/kadm5/ipropd_slave.c

  Log Message:
  -----------
  Disable sync during iprop receive_everything()

Doing an fsync per-record when receiving the complete HDB is a performance
disaster.  Among other things, if the HDB is very large, then one slave
receving a full HDB can cause other slaves to timeout and, if HDB write
activity is high enough to cause iprop log truncation, then also need full
syncs, which leads to a cycle of full syncs for all slaves until HDB write
activity drops.

Allowing the iprop log to be larger helps, but improving receive_everything()
performance helps even more.

(cherry picked from commit 305dc816525f461f9bfe640d87f671f53f0e0fc6)


  Commit: 720bcd2b57e32ba22852c5f8d49c47a8e7d0a2ef
      https://github.com/heimdal/heimdal/commit/720bcd2b57e32ba22852c5f8d49c47a8e7d0a2ef
  Author: Nicolas Williams <nico at twosigma.com>
  Date:   2019-05-22 (Wed, 22 May 2019)

  Changed paths:
    M kadmin/load.c

  Log Message:
  -----------
  Disable sync during kadmin load

(cherry picked from commit 7d5f8bb051ca84592d1196bf5d5522da5a50f9d6)

Change-Id: I1fb60d697a4f80be1336dd0980f0758eb6436bbb


Compare: https://github.com/heimdal/heimdal/compare/952fa458961d...720bcd2b57e3


More information about the Heimdal-source-changes mailing list