Changes between Version 6 and Version 7 of proposals/readonly


Ignore:
Timestamp:
Jan 25, 2013, 9:12:01 AM (11 years ago)
Author:
fxp
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • proposals/readonly

    v6 v7  
    5555
    5656
     57=== Testing ===
     58
     59In config.xml, set the maxIdle connection parameter to 0 to force the pool to request new connection:
     60{{{
     61   <minIdle>0</minIdle>
     62   <maxIdle>0</maxIdle>
     63}}}
     64
     65Change the DB read/write mode using:
     66{{{
     67-- For postgres
     68ALTER DATABASE eea_catalogue SET default_transaction_read_only = true;
     69}}}
     70
     71The DBHeartBeat status will change in the log:
     72{{{
     73
     742013-01-25 18:10:21,122 WARN  [jeeves.apphand] - DBHeartBeat SQLException: ERROR: cannot execute INSERT in a read-only transaction
     752013-01-25 18:10:21,123 INFO  [jeeves.apphand] - GeoNetwork remains in read-only mode
     762013-01-25 18:10:41,123 INFO  [jeeves.apphand] - DBHeartBeat: GN is read-only ? true
     772013-01-25 18:10:41,141 WARN  [jeeves.apphand] - GeoNetwork can write to the database, switching to read-write mode
     78
     79}}}
     80
     81
    5782=== Backwards Compatibility Issues ===
    5883