make maxPendingPersistPeriod configurable