Update the default hash size to be 100001 instead of 10000
authorRonnie Sahlberg <ronniesahlberg@gmail.com>
Sun, 10 Oct 2010 20:09:18 +0000 (07:09 +1100)
committerRonnie Sahlberg <ronniesahlberg@gmail.com>
Sun, 10 Oct 2010 20:10:25 +0000 (07:10 +1100)
This can sometimes improve performance for environments where very many
files are touched in rapid succession

server/ctdb_tunables.c

index 02e76ae30822d3462cedeb81d59d4b7cc6dcc9fe..4a3cfbbab2331c345388a1fbb7879fb32a91db4f 100644 (file)
@@ -42,7 +42,7 @@ static const struct {
        { "EventScriptUnhealthyOnTimeout", 0, offsetof(struct ctdb_tunable, script_unhealthy_on_timeout) },/* OBSOLETE */
        { "RecoveryGracePeriod", 120,  offsetof(struct ctdb_tunable, recovery_grace_period) },
        { "RecoveryBanPeriod",  300,  offsetof(struct ctdb_tunable, recovery_ban_period) },
-       { "DatabaseHashSize", 10000 offsetof(struct ctdb_tunable, database_hash_size) },
+       { "DatabaseHashSize", 100001, offsetof(struct ctdb_tunable, database_hash_size) },
        { "DatabaseMaxDead",      5,  offsetof(struct ctdb_tunable, database_max_dead) },
        { "RerecoveryTimeout",   10,  offsetof(struct ctdb_tunable, rerecovery_timeout) },
        { "EnableBans",           1,  offsetof(struct ctdb_tunable, enable_bans) },