Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
tutorial:adm:server_preparation_tmp [2020/07/24 08:25]
fiserp [PostgreSQL]
tutorial:adm:server_preparation_tmp [2020/07/24 08:29]
fiserp [DB server configuration]
Line 144: Line 144:
 ==== DB server configuration ==== ==== DB server configuration ====
  
-First of all, enable the password authentication.+  * Enable the password authentication.
  
 In the file ''/data/pgsql/12/data/pg_hba.conf'' find lines: In the file ''/data/pgsql/12/data/pg_hba.conf'' find lines:
Line 151: Line 151:
 host    all             all             ::1/128                 ident host    all             all             ::1/128                 ident
 </code> </code>
- +and change the value at the end of each line to ''md5'' like this:
-and change the value at the end of each line into md5 like this:+
 <code> <code>
 host    all             all             127.0.0.1/32            md5 host    all             all             127.0.0.1/32            md5
Line 158: Line 157:
 </code> </code>
  
-Now we can do DB sizing. We presume the system has 3GB dedicated for the db. We can also log the queries logging (those over 200ms). **For particular sizinguse a [[https://pgtune.leopard.in.ua/#/|calculator]]**.+  * Adjust DB instance sizing. 
 +    * In following snippet, we presume the system has 3GB of memory dedicated for the database. **For your deploymentadjust the sizing accordingly. Use a [[https://pgtune.leopard.in.ua/#/|calculator]] if in doubt**
 +    * We also log queries running longer than 200ms.
 In a file ''/data/pgsql/12/data/postgresql.conf'' edit (add those if not exist) lines: In a file ''/data/pgsql/12/data/postgresql.conf'' edit (add those if not exist) lines:
 <code> <code>