Additional fix for OPENDJ-2136: Add a configuration option for checkpoint interval in PDB
* use duration syntax for property
* add upper/lower bounds enforced by Persistit
* add correct LDAP schema.
| | |
| | | </ldap:attribute> |
| | | </adm:profile> |
| | | </adm:property> |
| | | <adm:property name="db-checkpoint-interval" advanced="true"> |
| | | <adm:property name="db-checkpointer-wakeup-interval" advanced="true"> |
| | | <adm:synopsis> |
| | | Checkpoint interval in seconds |
| | | Specifies the maximum length of time that may pass between checkpoints. |
| | | </adm:synopsis> |
| | | <adm:description> |
| | | This setting controls the elapsed time between attempts to write |
| | |
| | | </adm:description> |
| | | <adm:default-behavior> |
| | | <adm:defined> |
| | | <adm:value>15</adm:value> |
| | | <adm:value>15s</adm:value> |
| | | </adm:defined> |
| | | </adm:default-behavior> |
| | | <adm:syntax> |
| | | <adm:size lower-limit="0" /> |
| | | <adm:duration base-unit="s" lower-limit="10" upper-limit="3600" /> |
| | | </adm:syntax> |
| | | <adm:profile name="ldap"> |
| | | <ldap:attribute> |
| | | <ldap:name>ds-cfg-db-checkpoint-interval</ldap:name> |
| | | <ldap:name>ds-cfg-db-checkpointer-wakeup-interval</ldap:name> |
| | | </ldap:attribute> |
| | | </adm:profile> |
| | | </adm:property> |
| | |
| | | ds-cfg-db-cache-size $ |
| | | ds-cfg-db-txn-no-sync $ |
| | | ds-cfg-disk-full-threshold $ |
| | | ds-cfg-disk-low-threshold ) |
| | | ds-cfg-disk-low-threshold $ |
| | | ds-cfg-db-checkpointer-wakeup-interval ) |
| | | X-ORIGIN 'OpenDJ Directory Server' ) |
| | | objectClasses: ( 1.3.6.1.4.1.36733.2.1.2.24 |
| | | NAME 'ds-cfg-backend-index' |
| | |
| | | final Configuration dbCfg = new Configuration(); |
| | | dbCfg.setLogFile(new File(backendDirectory, VOLUME_NAME + ".log").getPath()); |
| | | dbCfg.setJournalPath(new File(backendDirectory, JOURNAL_NAME).getPath()); |
| | | dbCfg.setCheckpointInterval(config.getDBCheckpointInterval()); |
| | | dbCfg.setCheckpointInterval(config.getDBCheckpointerWakeupInterval()); |
| | | dbCfg.setVolumeList(asList(new VolumeSpecification(new File(backendDirectory, VOLUME_NAME).getPath(), null, |
| | | BUFFER_SIZE, 4096, Long.MAX_VALUE / BUFFER_SIZE, 2048, true, false, false))); |
| | | final BufferPoolConfiguration bufferPoolCfg = getBufferPoolCfg(dbCfg); |