[ovs-git] [openvswitch/ovs] 448b20: ovsdb: Use previous snapshot size as an additional...

GitHub noreply at github.com
Fri Apr 1 04:50:50 UTC 2016


  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: 448b2003c171b2edc7f4487e7289b15838b0e109
      https://github.com/openvswitch/ovs/commit/448b2003c171b2edc7f4487e7289b15838b0e109
  Author: Ben Pfaff <blp at ovn.org>
  Date:   2016-03-31 (Thu, 31 Mar 2016)

  Changed paths:
    M ovsdb/file.c
    M ovsdb/ovsdb-server.1.in

  Log Message:
  -----------
  ovsdb: Use previous snapshot size as an additional factor for compaction.

Until now, the minimum database size before automatically compacting has
been 10 MB, regardless of the inherent size of the data in the database.
A couple of people have pointed out that this won't scale well to larger
databases.  This commit changes this criterion to 4 times the previously
compacted size of the database, with 10 MB as a minimum.

The 4x factor is suggested by Diego Ongaro's thesis, "Consensus: Bridging
Theory and Practice", section 5.1.2 "When to snapshot".

Signed-off-by: Ben Pfaff <blp at ovn.org>
Acked-by: Justin Pettit <jpettit at ovn.org>




More information about the git mailing list