[open-ils-commits] [GIT] Evergreen ILS branch rel_2_10 updated. 90dd3c9bc1e61debc98e6da91e6aec5925e8da8a
Evergreen Git
git at git.evergreen-ils.org
Sun Oct 2 17:44:02 EDT 2016
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".
The branch, rel_2_10 has been updated
via 90dd3c9bc1e61debc98e6da91e6aec5925e8da8a (commit)
via 9553e5ffbfe425dbaa615f1817a35d3f036e0b96 (commit)
from b60e6e8a78fa6606b7433f53d07a298fc6930b03 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 90dd3c9bc1e61debc98e6da91e6aec5925e8da8a
Author: Dan Scott <dscott at laurentian.ca>
Date: Sun Oct 2 17:28:05 2016 -0400
Docs: add mpm_prefork config for Apache 2.4 systems
We had only documented the Apache 2.2 stanzas for mpm_prefork, so include a
section for 2.4 that uses MaxRequestWorkers and MaxConnectionsPerChild. Given
the memory leaks that we have seen, suggest lower settings for these two values
(assuming that most sites will be serving a public catalogue instead of using a
separate discovery layer).
Also fix the weird formatting where Debian instructions were indented under a
Fedora section.
Also use dots for ordered bullets instead of renumbering all of the bullets
again.
Signed-off-by: Dan Scott <dscott at laurentian.ca>
diff --git a/docs/installation/server_installation.txt b/docs/installation/server_installation.txt
index 36c5f87..0036266 100644
--- a/docs/installation/server_installation.txt
+++ b/docs/installation/server_installation.txt
@@ -292,7 +292,7 @@ cp -r /openils/var/web/js/dojo-release-1.3.3/* /openils/var/web/js/dojo/.
Configure the Apache Web server
-------------------------------
-1. Use the example configuration files in `Open-ILS/examples/apache/` (for
+. Use the example configuration files in `Open-ILS/examples/apache/` (for
Apache versions below 2.4) or `Open-ILS/examples/apache_24/` (for Apache
versions 2.4 or greater) to configure your Web server for the Evergreen
catalog, staff client, Web services, and administration interfaces. Issue the
@@ -331,7 +331,7 @@ mkdir /etc/httpd/ssl
cd /etc/httpd/ssl
------------------------------------------------------------------------------
+
-2. The `openssl` command cuts a new SSL key for your Apache server. For a
+. The `openssl` command cuts a new SSL key for your Apache server. For a
production server, you should purchase a signed SSL certificate, but you can
just use a self-signed certificate and accept the warnings in the staff client
and browser during testing and development. Create an SSL key for the Apache
@@ -342,7 +342,7 @@ server by issuing the following command as the *root* Linux account:
openssl req -new -x509 -days 365 -nodes -out server.crt -keyout server.key
------------------------------------------------------------------------------
+
-3. As the *root* Linux account, edit the `eg.conf` file that you copied into
+. As the *root* Linux account, edit the `eg.conf` file that you copied into
place.
a. To enable access to the offline upload / execute interface from any
workstation on any network, make the following change (and note that
@@ -351,37 +351,54 @@ place.
* (Apache 2.4): Replace `Require host 10.0.0.0/8` with `Require all granted`
b. (Fedora): Change references from the non-existent `/etc/apache2/` directory
to `/etc/httpd/`.
-4. Change the user for the Apache server.
+. Change the user for the Apache server.
* (Debian and Ubuntu): As the *root* Linux account, edit
`/etc/apache2/envvars`. Change `export APACHE_RUN_USER=www-data` to
`export APACHE_RUN_USER=opensrf`.
* (Fedora): As the *root* Linux account , edit `/etc/httpd/conf/httpd.conf`.
Change `User apache` to `User opensrf`.
-5. Configure Apache with performance settings appropriate for Evergreen:
- * (Debian and Ubuntu): As the *root* Linux account, edit
- `/etc/apache2/apache2.conf`:
- * (Fedora): As the *root* Linux account, edit `/etc/httpd/conf/httpd.conf`:
- a. Change `KeepAliveTimeout` to `1`. Higher values reduce the chance of
- a request timing out unexpectedly, but increase the risk of using up
- all available Apache child processes.
- b. 'Optional': Change `MaxKeepAliveRequests` to `100`
- c. (Debian Wheezy, Ubuntu Precise, and Fedora) Update the prefork configuration
- section to suit your environment. The following settings apply to a busy
- system:
+. As the *root* Linux account, configure Apache with KeepAlive settings
+ appropriate for Evergreen. Higher values can improve the performance of a
+ single client by allowing multiple requests to be sent over the same TCP
+ connection, but increase the risk of using up all available Apache child
+ processes and memory.
+ * (Debian and Ubuntu): Edit `/etc/apache2/apache2.conf`.
+ a. Change `KeepAliveTimeout` to `1`.
+ b. Change `MaxKeepAliveRequests` to `100`.
+ * (Fedora): Edit `/etc/httpd/conf/httpd.conf`.
+ a. Change `KeepAliveTimeout` to `1`.
+ b. Change `MaxKeepAliveRequests` to `100`.
+. As the *root* Linux account, configure the prefork module to start and keep
+ enough Apache servers available to provide quick responses to clients without
+ running out of memory. The following settings are a good starting point for a
+ site that exposes the default Evergreen catalogue to the web:
++
+.Debian Wheezy, Ubuntu Precise (`/etc/apache2/apache2.conf`) and Fedora (`/etc/httpd/conf/httpd.conf`)
+[source,bash]
+------------------------------------------------------------------------------
+<IfModule mpm_prefork_module>
+ StartServers 15
+ MinSpareServers 5
+ MaxSpareServers 15
+ MaxClients 75
+ MaxRequestsPerChild 500
+</IfModule>
+------------------------------------------------------------------------------
+
+.Ubuntu Trusty, Debian Jessie (`/etc/apache2/mods-available/mpm_prefork.conf`)
[source,bash]
------------------------------------------------------------------------------
<IfModule mpm_prefork_module>
- StartServers 20
- MinSpareServers 5
- MaxSpareServers 15
- MaxClients 150
- MaxRequestsPerChild 10000
+ StartServers 15
+ MinSpareServers 5
+ MaxSpareServers 15
+ MaxRequestWorkers 75
+ MaxConnectionsPerChild 500
</IfModule>
------------------------------------------------------------------------------
- d. (Ubuntu Trusty, Debian Jessie) As the *root* user, edit
- /etc/apache2/mods-available/mpm_prefork.conf to match the above values.
- Then, also as the *root* user, enable the mpm_prefork module by doing:
++
+. (Ubuntu Trusty, Debian Jessie) As the *root* user,
+ enable the mpm_prefork module:
+
[source,bash]
------------------------------------------------------------------------------
@@ -389,10 +406,10 @@ a2dismod mpm_event
a2enmod mpm_prefork
------------------------------------------------------------------------------
+
-6. (Fedora): As the *root* Linux account, edit the `/etc/httpd/eg_vhost.conf`
+. (Fedora): As the *root* Linux account, edit the `/etc/httpd/eg_vhost.conf`
file to change references from the non-existent `/etc/apache2/` directory
to `/etc/httpd/`.
-7. (Debian Wheezy and Ubuntu Precise): As the *root* Linux account, enable the Evergreen site:
+. (Debian Wheezy and Ubuntu Precise): As the *root* Linux account, enable the Evergreen site:
+
[source,bash]
------------------------------------------------------------------------------
@@ -408,7 +425,7 @@ a2dissite 000-default # OPTIONAL: disable the default site (the "It Works" page
a2ensite eg.conf
------------------------------------------------------------------------------
+
-8. (Ubuntu): As the *root* Linux account, enable Apache to write
+. (Ubuntu): As the *root* Linux account, enable Apache to write
to the lock directory; this is currently necessary because Apache
is running as the `opensrf` user:
+
@@ -416,8 +433,9 @@ a2ensite eg.conf
------------------------------------------------------------------------------
chown opensrf /var/lock/apache2
------------------------------------------------------------------------------
-+
-9. Learn more about additional Apache options in the following sections:
+
+Learn more about additional Apache options in the following sections:
+
* <<_apache_rewrite_tricks,Apache Rewrite Tricks>>
* <<_apache_access_handler_perl_module,Apache Access Handler Perl Module>>
commit 9553e5ffbfe425dbaa615f1817a35d3f036e0b96
Author: Dan Scott <dscott at laurentian.ca>
Date: Sun Oct 2 10:04:04 2016 -0400
Docs: set up default action_trigger_filters.json file
Given that action_trigger_runner.pl looks by default for a file called
action_trigger_filters.json, instruct people to create that file when they are
first setting up their system.
Signed-off-by: Dan Scott <dscott at laurentian.ca>
diff --git a/docs/installation/server_installation.txt b/docs/installation/server_installation.txt
index a218903..36c5f87 100644
--- a/docs/installation/server_installation.txt
+++ b/docs/installation/server_installation.txt
@@ -445,8 +445,26 @@ destination file. The backup version of the destination file has a tilde (`~`)
appended to the file name, so if you have forgotten the Jabber users and
domains, you can retrieve the settings from the backup version of the files.
-`eg_db_config`, described in the following section, sets the database
-connection information in `opensrf.xml` for you.
+`eg_db_config`, described in <<_creating_the_evergreen_database,Creating the Evergreen
+database>>, sets the database connection information in `opensrf.xml` for you.
+
+Configure action triggers for the Evergreen application
+-------------------------------------------------------
+_Action Triggers_ provide hooks for the system to perform actions when a given
+event occurs; for example, to generate reminder or overdue notices, the
+`checkout.due` hook is processed and events are triggered for potential actions
+if there is no checkin time.
+
+To enable the default set of hooks, issue the following command as the
+*opensrf* Linux account:
+
+[source, bash]
+------------------------------------------------------------------------------
+cp -b /openils/conf/action_trigger_filters.json.example /openils/conf/action_trigger_filters.json
+------------------------------------------------------------------------------
+
+For more information about configuring and using action triggers, see
+<<_notifications_action_triggers,Notifications / Action Triggers>>.
Creating the Evergreen database
-------------------------------
-----------------------------------------------------------------------
Summary of changes:
docs/installation/server_installation.txt | 96 ++++++++++++++++++++---------
1 files changed, 66 insertions(+), 30 deletions(-)
hooks/post-receive
--
Evergreen ILS
More information about the open-ils-commits
mailing list