please review ticket #337 - improve CLEANRUV functionality
by Mark Reynolds
https://fedorahosted.org/389/ticket/337
https://fedorahosted.org/389/attachment/ticket/337/0001-Ticket-337-RFE-Im...
Previously the steps to remove a replica and its RUV was problematic. I
created two new "tasks" to take care of the entire replication environment.
[1] The new task "CLEANALLRUV<rid>" - run it once on any master
* This marks the rid as invalid. Used to reject updates to the
changelog, and the database RUV
* It then sends a "CLEANRUV" extended operation to each agreement.
* Then it cleans its own RUV.
* The CLEANRUV extended op then triggers that replica to send the same
CLEANRUV extop to its replicas, then it cleans its own RID.
Basically this operation cascades through the entire replication
environment.
[2] The "RELEASERUV<rid>" task - run it once on any master
* Once the RUV's have been cleaned on all the replicas, you need to
"release" the rid so that it can be reused. This operation also
cascades through the entire replication environment. This also
triggers changelog trimming.
For all of this to work correctly, there is a list of steps that needs
to be followed. This procedure is attached to the ticket.
https://fedorahosted.org/389/attachment/ticket/337/cleanruv-proceedure
Thanks,
Mark
12 years
Please review: [389 Project] #310: Avoid calling escape_string() for logged DNs
by Noriko Hosoi
https://fedorahosted.org/389/ticket/310
https://fedorahosted.org/389/attachment/ticket/310/0001-Trac-Ticket-310-A...
Fix description: removed unnecessary escape_string calls and the
static buffer used by escape_string.
Ran slamd repeatedly (BIND+SEARCH+UNBIND from 4 threads in 10 min.), but I
could not get the good evidence that No escape_string improves the
performance. Please note that the bind dn contains ascii characters and
digits only. The following is the average of 5 repeated attempts each.
[With escape_string]
Total_Duration Total_Count Avg_Duration AVG_Count/Interval
--------------+-------------+-------------+-------------------
2395787.2 2404987.0 0.998 40083.117
--------------+-------------+-------------+-------------------
[No escape_string]
Total_Duration Total_Count Avg_Duration AVG_Count/Interval
--------------+-------------+-------------+-------------------
2395570.8 2314081.2 1.045 38568.020
--------------+-------------+-------------+-------------------
12 years