summaryrefslogtreecommitdiff
path: root/ctdb/server/ctdb_tunables.c
diff options
context:
space:
mode:
authorRonnie Sahlberg <ronniesahlberg@gmail.com>2012-03-20 12:20:55 +1100
committerRonnie Sahlberg <ronniesahlberg@gmail.com>2012-03-20 12:26:22 +1100
commite7e51ddb64cb362d3417eaae7c8d7fd5a5c4ea4d (patch)
treec65e45786149b97f06f152a286b613db7eb628da /ctdb/server/ctdb_tunables.c
parent6a493a0b08a8751ee9265047152851e00b9bf443 (diff)
downloadsamba-e7e51ddb64cb362d3417eaae7c8d7fd5a5c4ea4d.tar.gz
LACOUNT: Add back lacount mechanism to defer migrating a fetched/read copy until after default of 20 consecutive requests from the same node
This can improve performance slightly on certain workloads where smbds frequently read from the same record (This used to be ctdb commit 035c0d981bde8c0eee8b3f24ba8e2dc817e5b504)
Diffstat (limited to 'ctdb/server/ctdb_tunables.c')
-rw-r--r--ctdb/server/ctdb_tunables.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ctdb/server/ctdb_tunables.c b/ctdb/server/ctdb_tunables.c
index 016acc44671..d09ac9bde9c 100644
--- a/ctdb/server/ctdb_tunables.c
+++ b/ctdb/server/ctdb_tunables.c
@@ -74,7 +74,8 @@ static const struct {
{ "AllowClientDBAttach", 1, offsetof(struct ctdb_tunable, allow_client_db_attach), false },
{ "RecoverPDBBySeqNum", 0, offsetof(struct ctdb_tunable, recover_pdb_by_seqnum), false },
{ "DeferredRebalanceOnNodeAdd", 300, offsetof(struct ctdb_tunable, deferred_rebalance_on_node_add) },
- { "FetchCollapse", 1, offsetof(struct ctdb_tunable, fetch_collapse) }
+ { "FetchCollapse", 1, offsetof(struct ctdb_tunable, fetch_collapse) },
+ { "MaxLACount", 20, offsetof(struct ctdb_tunable, max_lacount) }
};
/*