30 Jul, 2010

5 commits

  • …or exiting of disks full.
    
    Each instance of the monitor have two thresholds: "low" and "full". Other components can register their own handlers if they wish to receive notifications when the thresholds are reached. It extends the MonitorProvider interface and utilizes the update interval mechanism to poll the free disk space. The current free space and state of all monitor instances are exposed through the cn=monitor interface under the cn=Disk Space Monitor branch. The only component using the monitor now is the JE backend. When the "low" threshold is reached, write operations will only be permitted to users with the BYPASS_LOCKDOWN privilege. When the "full" threshold is reached, the backend is placed in read-only mode. The default "low" and "full" thresholds are 100 MB and 10MB respectively. Along with the new feature, this patch also added two privileges: SERVER_LOCKDOWN and BYPASS_LOCKDOWN. Any user with the SERVER_LOCKDOWN privilege can put and take the server out of lockdown mode. Any user with the BYPASS_LOCKDOWN mode can bypass lockdown mode. This was restricted to only "root" users before. In addition, the MonitorProvider abstract class no longer extends DirectoryThread. It now uses a static single threaded ScheduledExecutorService to update provider states. Any provider that wishes to have its state updated periodically needs to register its updater runnable with the scheduleUpdate method.
    
    git-svn-id: https://svn.forgerock.org/opendj/trunk@6549 41b1ffd8-f28e-4786-ab96-9950f0a78031
    ludovicp
     
  • git-svn-id: https://svn.forgerock.org/opendj/trunk@6548 41b1ffd8-f28e-4786-ab96-9950f0a78031
    ludovicp
     
  • … LDIF files with low memory.
    In first phase write buffer positions to index files instead of storing in memory and suffering OOME due to O(N) memory growth. In second phase, read buffer positions from index files and fall-back to batch import of indexes when the number of buffers for an index would cause OOME if they were all opened at once. Also, improve second phase progress statistics to report batch count, kb remaining/rate, and fix several race conditions in the statistics.
    
    git-svn-id: https://svn.forgerock.org/opendj/trunk@6547 41b1ffd8-f28e-4786-ab96-9950f0a78031
    ludovicp
     
  • …rge rebuilds. The  DB cache size was being configured too late in the rebuild-index initialization and so the default cache size of 60% heap was being used, which caused memory budgeting failures.
    
    git-svn-id: https://svn.forgerock.org/opendj/trunk@6546 41b1ffd8-f28e-4786-ab96-9950f0a78031
    ludovicp
     
  • … and AbsoluteSubtreeSpec.
    
    
    git-svn-id: https://svn.forgerock.org/opendj/trunk@6545 41b1ffd8-f28e-4786-ab96-9950f0a78031
    ludovicp
     

05 Jul, 2010

7 commits


25 Jun, 2010

12 commits


15 Jun, 2010

5 commits


07 Jun, 2010

11 commits