mirror of
https://github.com/ansible/awx.git
synced 2026-02-16 02:30:01 -03:30
* 100 is the default capacity for a channel. If the client doesn't read the socket fast enough, websocket messages can and will be lost. This increases the default to 10,000
34 lines
971 B
Django/Jinja
34 lines
971 B
Django/Jinja
DATABASES = {
|
|
'default': {
|
|
'ATOMIC_REQUESTS': True,
|
|
'ENGINE': 'django.db.backends.postgresql',
|
|
'NAME': "{{ pg_database }}",
|
|
'USER': "{{ pg_username }}",
|
|
'PASSWORD': "{{ pg_password }}",
|
|
'HOST': "{{ pg_hostname | default('postgres') }}",
|
|
'PORT': "{{ pg_port }}",
|
|
}
|
|
}
|
|
|
|
BROKER_URL = 'redis://{}:{}/'.format(
|
|
"{{ redis_hostname }}",
|
|
"{{ redis_port }}",)
|
|
|
|
CHANNEL_LAYERS = {
|
|
'default': {'BACKEND': 'channels_redis.core.RedisChannelLayer',
|
|
'CONFIG': {
|
|
'hosts': [("{{ redis_hostname }}", {{ redis_port|int }})],
|
|
'capacity': 10000,
|
|
}}
|
|
}
|
|
|
|
CACHES = {
|
|
'default': {
|
|
'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
|
|
'LOCATION': '{}:{}'.format("{{ memcached_hostname }}", "{{ memcached_port }}")
|
|
},
|
|
'ephemeral': {
|
|
'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',
|
|
},
|
|
}
|