add horizontal file sharding based on filename matches
This commit is contained in:
@@ -23,17 +23,8 @@ frontend mare
|
||||
bind :6000
|
||||
default_backend mare-servers
|
||||
|
||||
frontend mare-files
|
||||
bind :6200
|
||||
default_backend mare-files
|
||||
|
||||
backend mare-servers
|
||||
balance leastconn
|
||||
cookie SERVER insert indirect nocache
|
||||
server mare1 mare-shard-1:6000 cookie mare1
|
||||
server mare2 mare-shard-2:6000 cookie mare2
|
||||
|
||||
backend mare-files
|
||||
balance roundrobin
|
||||
server files1 mare-files-shard-1:6200
|
||||
server files2 mare-files-shard-2:6200
|
||||
|
||||
@@ -41,7 +41,17 @@
|
||||
"MaxJoinedGroupsByUser": 6,
|
||||
"MaxGroupUserCount": 100,
|
||||
"PurgeUnusedAccounts": false,
|
||||
"PurgeUnusedAccountsPeriodInDays": 14
|
||||
"PurgeUnusedAccountsPeriodInDays": 14,
|
||||
"CdnShardConfiguration": [
|
||||
{
|
||||
"FileMatch": "^[01234567]",
|
||||
"CdnFullUrl": ""
|
||||
},
|
||||
{
|
||||
"FileMatch": "^[89ABCDEF]",
|
||||
"CdnFullUrl": ""
|
||||
}
|
||||
]
|
||||
},
|
||||
"AllowedHosts": "*",
|
||||
"Kestrel": {
|
||||
|
||||
Reference in New Issue
Block a user