Update README.md

This commit is contained in:
zandercymatics 2023-11-15 10:13:41 -07:00
parent c457f862fc
commit dd3ea3870c
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7

View file

@ -293,3 +293,17 @@ it may help to resync your laptop with time.nist.gov:
``` ```
sudo sntp -sS time.nist.gov sudo sntp -sS time.nist.gov
``` ```
## Test if our connection pool is running
Our connection pool has a built-in `pool_status` object which you can call at anytime to assess the current connection status of the pool. Follow these steps to access it.
1. `cf ssh getgov-{env-name} -i {instance-index}`
* env-name -> Which environment to target, e.g. `staging`
* instance-index -> Which instance to target. For instance, `cf ssh getgov-staging -i 0`
2. `/tmp/lifecycle/shell`
3. `./manage.py shell`
4. `from epplibwrapper import CLIENT as registry, commands`
5. `print(registry.pool_status.connection_success)`
* (Should return true)
If you have multiple instances (staging for example), then repeat commands 1-5 for each instance you want to test.