Skip to content
This repository has been archived by the owner on Feb 27, 2020. It is now read-only.

Commit

Permalink
Merge pull request #123 from Metaswitch/config_options_update
Browse files Browse the repository at this point in the history
[Reviewer: Graeme] Config options update
  • Loading branch information
eleanor-merry committed Oct 23, 2015
2 parents 516ab76 + aea35c1 commit e5504b1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions docs/Clearwater_Configuration_Options_Reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ This section describes settings that are specific to a single node and are not a
* `etcd_cluster` - this is a comma separated list of IP addresses, for example `etcd_cluster=10.0.0.1,10.0.0.2`. It should be set on one of two ways:
* If the node is forming a new deployment, it should contain the IP addresses of all the nodes that are forming the new deployment (including this node).
* If the node is joining an existing deployment, it should contain the IP addresses of all the nodes that are currently in the deployment.
* `etcd_cluster_key` - this is the name of the etcd datastore clusters that this node should join. It defaults to the function of the node (e.g. a Homestead node defaults to using 'homestead' as its etcd datastore cluster name when it joins the Cassandra cluster). This must be set explicitly on nodes that colocate function.

## Core options

Expand All @@ -46,6 +47,7 @@ This section describes options for the basic configuration of a Clearwater deplo
* `email_recovery_sender` - Ellis allows password recovery by email. This sets the email address those emails are sent from.
* `ellis_api_key` - sets a key which can be used to authenticate automated requests to Ellis, by setting it as the value of the X-NGV-API header. This is used to expire demo users regularly.
* `ellis_hostname` - a hostname that resolves to Ellis, if you don't want to use `ellis.home_domain`. This should match Ellis's SSL certificate, if you are using one.
* `memento_hostname` - a hostname that resolves by DNS round-robin to all Mementos in the cluster (the default is `memento.<home_domain>`). This should match Memento's SSL certificate, if you are using one.

## Advanced options

Expand Down Expand Up @@ -121,6 +123,7 @@ This section describes optional configuration options, particularly for ensuring
* `pbx_service_route` - the SIP URI to which Bono routes originating calls from non-registering PBXes (which are identified by the `pbxes` option). This is used to route requests directly to the S-CSCF rather than going via an I-CSCF (which could change the route header and prevent the S-CSCF from processing the request properly). This URI is used verbatim and should almost always include the `lr`, `orig`, and `auto-reg` parameters. If this option is not specified, the requests are routed to the address specified by the `upstream_hostname` and `upstream_port` options.
* e.g. `sip:sprout.example.com:5054;transport=tcp;lr;orig;auto-reg`
* `non_register_authentication` - controls when Sprout will challenge a non-REGISTER request using SIP Proxy-Authentication. Possible values are `never` (meaning Sprout will never challenge) or `if_proxy_authorization_present` (meaning Sprout will only challenge requests that have a Proxy-Authorization header).
* `ralf_threads` - used on Sprout nodes, this determines how many worker threads should be started to do Ralf request processing (defaults to 25).

## Experimental options

Expand Down
4 changes: 2 additions & 2 deletions docs/Troubleshooting_and_Recovery.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ The most common problem from Ellis is it reporting "Failed to update server". T

* Check the `/var/log/ellis/ellis-*.log` files. If these indicate that a timeout occurred communicating with Homer or Homestead-prov, check that the DNS entries for Homer and Homestead-prov exist and are configured correctly. If these are already correct, check Homer or Homestead-prov to see if they are behaving incorrectly.

* To turn on debug logging for Ellis, write `LOG_LEVEL = logging.DEBUG` to the `local_settings.py` file (at `/usr/share/clearwater/ellis/src/metaswitch/ellis/local_settings.py`). Then restart clearwater-infrastructure (`sudo service clearwater-infrastructure restart`), and restart Ellis (`sudo service ellis stop` - it will be restarted by monit).
* To turn on debug logging for Ellis, write `LOG_LEVEL = logging.DEBUG` to the `local_settings.py` file (at `/usr/share/clearwater/ellis/local_settings.py`). Then restart clearwater-infrastructure (`sudo service clearwater-infrastructure restart`), and restart Ellis (`sudo service ellis stop` - it will be restarted by monit).

To examine Ellis' database, run `mysql` (as root), then type `use ellis;` to set the correct database. You can then issue standard SQL queries on the users and numbers tables, e.g. `SELECT * FROM users WHERE email = '<email address>'`.

Expand All @@ -39,7 +39,7 @@ The most common problem on Homer and Homestead is failing to read or write to th

* Check that Cassandra is clustered correctly (if running a multi-node system). `nodetool status` tells you which nodes are in the cluster, and how the keyspace is distributed among them.

* If this doesn't help, Homer logs to `/var/log/homer/homer-*.log` and Homestead logs to `/var/log/homestead/homestead-*.log` and `/var/log/homestead-prov/homestead-*.log`. To turn on debug logging for Homer or Homestead-prov, write `LOG_LEVEL = logging.DEBUG` to the `local_settings.py` file (at `/usr/share/clearwater/<homer|homestead-prov>/src/metaswitch/crest/local_settings.py`). Then restart clearwater-infrastructure (`sudo service clearwater-infrastructure restart`), and restart Homer/Homestead-prov (`sudo service <homer|homestead-prov> stop` - they will be restarted by monit). To turn on debug logging for Homestead write `log_level=5` to `/etc/clearwater/user_settings` (creating it if it doesn't exist already), then restart Homestead (`sudo service homestead stop` - it will be restarted by monit).
* If this doesn't help, Homer logs to `/var/log/homer/homer-*.log` and Homestead logs to `/var/log/homestead/homestead-*.log` and `/var/log/homestead-prov/homestead-*.log`. To turn on debug logging for Homer or Homestead-prov, write `LOG_LEVEL = logging.DEBUG` to the `local_settings.py` file (at `/usr/share/clearwater/<homer|homestead>/local_settings.py`). Then restart clearwater-infrastructure (`sudo service clearwater-infrastructure restart`), and restart Homer/Homestead-prov (`sudo service <homer|homestead-prov> stop` - they will be restarted by monit). To turn on debug logging for Homestead write `log_level=5` to `/etc/clearwater/user_settings` (creating it if it doesn't exist already), then restart Homestead (`sudo service homestead stop` - it will be restarted by monit).

To examine Homer or Homestead's database, run `cqlsh` and then type `use homer;`, `use homestead_provisioning;` or `use homestead_cache` to set the correct database. You can then issue CQL queries such as `SELECT * FROM impi WHERE private_id = '<private user ID>'`.

Expand Down

0 comments on commit e5504b1

Please sign in to comment.