mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-12 10:38:16 -06:00
Clean up language & remove obsolete note
This commit is contained in:
parent
92900fd887
commit
48db48c8d4
@ -94,30 +94,21 @@ REDIS = {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
!!! note
|
|
||||||
If you are upgrading from a NetBox release older than v2.7.0, please note that the Redis connection configuration
|
|
||||||
settings have changed. Manual modification to bring the `REDIS` section inline with the above specification is
|
|
||||||
necessary
|
|
||||||
|
|
||||||
!!! warning
|
!!! warning
|
||||||
It is highly recommended to keep the task and cache databases separate. Using the same database number on the
|
It is highly recommended to keep the task and cache databases separate. Using the same database number on the
|
||||||
same Redis instance for both may result in queued background tasks being lost during cache flushing events.
|
same Redis instance for both may result in queued background tasks being lost during cache flushing events.
|
||||||
|
|
||||||
### Using Redis with UNIX sockets
|
### UNIX Socket Support
|
||||||
|
|
||||||
Redis may be configured by using the `URL` configuration setting,
|
Redis may alternatively be configured by specifying a complete URL instead of individual components. This approach supports the use of a UNIX socket connection. For example:
|
||||||
instead of specifying `HOST`, `PORT`, and so on.
|
|
||||||
This can be used to specify a UNIX socket connection.
|
|
||||||
|
|
||||||
For example:
|
|
||||||
|
|
||||||
```python
|
```python
|
||||||
REDIS = {
|
REDIS = {
|
||||||
"tasks": {
|
'tasks': {
|
||||||
"URL": "unix:///run/redis-netbox/redis.sock?db=0"
|
'URL': 'unix:///run/redis-netbox/redis.sock?db=0'
|
||||||
},
|
},
|
||||||
"caching": {
|
'caching': {
|
||||||
"URL": "unix:///run/redis-netbox/redis.sock?db=1"
|
'URL': 'unix:///run/redis-netbox/redis.sock?db=1'
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user