Commit 033c0225 authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

switched deployment to use redis cluster

parent fe0beed3
......@@ -12,6 +12,8 @@ DB_DATABASE=homestead
DB_USERNAME=homestead
DB_PASSWORD=secret
REDIS_CLIENT=predis
BROADCAST_DRIVER=log
CACHE_DRIVER=redis
SESSION_DRIVER=array
......
......@@ -14,6 +14,7 @@
"guzzlehttp/guzzle": "^7.0.1",
"laravel/framework": "^8.40",
"laravel/tinker": "^2.5",
"predis/predis": "^1.1",
"promphp/prometheus_client_php": "^2.2"
},
"require-dev": {
......@@ -63,4 +64,4 @@
},
"minimum-stability": "dev",
"prefer-stable": true
}
}
\ No newline at end of file
......@@ -72,8 +72,8 @@ return [
],
'redis' => [
'driver' => 'redis',
'connection' => 'central',
'driver' => env('REDIS_CACHE_DRIVER', 'redis'),
'connection' => env('CENTRAL_REDIS_CONNECTION', 'cache'),
],
'dynamodb' => [
......@@ -98,6 +98,6 @@ return [
|
*/
'prefix' => env('CACHE_PREFIX', Str::slug(env('APP_NAME', 'laravel'), '_').'_cache'),
'prefix' => "proxy",
];
......@@ -121,9 +121,11 @@ return [
'client' => env('REDIS_CLIENT', 'phpredis'),
'options' => [
'cluster' => env('REDIS_CLUSTER', 'predis'),
'prefix' => env('REDIS_PREFIX', Str::slug(env('APP_NAME', 'laravel'), '_').'_database_'),
'options' => [
'cluster' => 'redis',
'parameters' => [
'password' => env('CENTRAL_REDIS_PASSWORD', null),
],
],
'default' => [
......@@ -136,18 +138,19 @@ return [
'cache' => [
'url' => env('REDIS_URL'),
'host' => env('REDIS_HOST', '127.0.0.1'),
'password' => env('REDIS_PASSWORD', null),
'port' => env('REDIS_PORT', 6379),
'database' => env('REDIS_CACHE_DB', 1),
],
'central' => [
'url' => env('CENTRAL_REDIS_URL'),
'host' => env('CENTRAL_REDIS_HOST', '127.0.0.1'),
'password' => env('CENTRAL_REDIS_PASSWORD', null),
'port' => env('CENTRAL_REDIS_PORT', 6379),
'database' => env('CENTRAL_REDIS_CACHE_DB', 3),
'database' => env('REDIS_CACHE_DB', 0),
],
"clusters" => [
'clustercache' => [[
'host' => env('CENTRAL_REDIS_HOST', 'localhost'),
'password' => env('CENTRAL_REDIS_PASSWORD', null),
'port' => env('CENTRAL_REDIS_PORT', 6379),
'database' => 0,
]],
]
],
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment