-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3604 from netbox-community/3282-seperate-redis-co…
…nfig implements #3282 - seperate webhooks and caching redis configs
- Loading branch information
Showing
6 changed files
with
152 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,53 @@ | ||
v2.7.0 (FUTURE) | ||
|
||
## Changes | ||
|
||
### Redis Configuration ([#3282](https://github.com/netbox-community/netbox/issues/3282)) | ||
|
||
v2.6.0 introduced caching and added the `CACHE_DATABASE` option to the existing `REDIS` database configuration section. | ||
This did not however, allow for using two different Redis connections for the seperate caching and webhooks features. | ||
This change separates the Redis connection configurations in the `REDIS` section into distinct `webhooks` and `caching` subsections. | ||
This requires modification of the `REDIS` section of the `configuration.py` file as follows: | ||
|
||
Old Redis configuration: | ||
```python | ||
REDIS = { | ||
'HOST': 'localhost', | ||
'PORT': 6379, | ||
'PASSWORD': '', | ||
'DATABASE': 0, | ||
'CACHE_DATABASE': 1, | ||
'DEFAULT_TIMEOUT': 300, | ||
'SSL': False, | ||
} | ||
``` | ||
|
||
New Redis configuration: | ||
```python | ||
REDIS = { | ||
'webhooks': { | ||
'HOST': 'redis.example.com', | ||
'PORT': 1234, | ||
'PASSWORD': 'foobar', | ||
'DATABASE': 0, | ||
'DEFAULT_TIMEOUT': 300, | ||
'SSL': False, | ||
}, | ||
'caching': { | ||
'HOST': 'localhost', | ||
'PORT': 6379, | ||
'PASSWORD': '', | ||
'DATABASE': 1, | ||
'DEFAULT_TIMEOUT': 300, | ||
'SSL': False, | ||
} | ||
} | ||
``` | ||
|
||
Note that `CACHE_DATABASE` has been removed and the connection settings have been duplicated for both `webhooks` and `caching`. | ||
This allows the user to make use of separate Redis instances and/or databases if desired. | ||
Full connection details are required in both sections, even if they are the same. | ||
|
||
## Enhancements | ||
|
||
* [#2902](https://github.com/digitalocean/netbox/issues/2902) - Replace supervisord with systemd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters