...
Multiexcerpt macro | ||
---|---|---|
| ||
Instructions based on the Postgresql wiki Setting up the PostgreSQL ServerChanges to PostgreSQL Configuration FilesAfter installing the PostgreSQL server, a system user named In your Linux shell, change/switch to this user: Changes to pg_hba.conf FileNext, edit the PostgreSQL
So, in Ubuntu 22.04, for example, open it up with your preferred text editor: Towards the end of the file, add (or modify) the following lines of text to the section starting with something like "# IPv4 local connections:": Next, make sure entries under "IPv6 local connections" are disabled by adding the '#' character to beginning of this line: Save the changes and quit your editor. Changes to postgresql.conf FileFinally, set the
So, in Ubuntu 22.04, for example, open it with your favorite text editor then make the following changes to that file: The A Lowering this setting to 32 should also be fine, but you might need to adjust based on your system. Save your changes and quit. Log out of the ' Set up datatype 'casts'Now we need to create some datatype casts that CollectionSpace uses. While logged in as the then enter the following commands into the Remain in the Create the |
...
Multiexcerpt macro | ||
---|---|---|
| ||
Tuning the database is OPTIONAL! CollectionSpace will run even if none of the steps below are carried out. They are merely steps to tweak the database and improve performance when running with CollectionSpace (Nuxeo) The below is a condensed version of the instructions on Nuxeo's Configuring PostgreSQL page. If you want more details than are given below, please refer to that page. More generically, the PostgreSQL wiki page on Tuning Your PostgreSQL Server may also be helpful. Tuning takes place in postgresql.conf - the location differ among OS' flavours. Some examples are:
For example, for Debian/Ubuntu: Edit the following value in that file: Now on the command line, set the kernel.shmmax value.. This value should at least be shared_buffer + 128MB If you get an error, you need to up the value of kernel.shmax You need to register the final value of shmmax: Open /etc/sysctl.conf and add the following line - replacing the value with the value you set on for shmmax: finally set effective cache_size: Do this by running (and printing stats in megabytes): This will give you an output like so: find your effective cache_size by adding the number under buffers and cached. In the above example: To this number you add the shared_buffers value .. so we get a total of: again edit postgres conf and set effective cache size to the value you found in the previous steps. Also set the following values: restart for changes to take effect Debian/Ubuntu: |
...