forked from desaxin/Kitsune
-
Notifications
You must be signed in to change notification settings - Fork 2
/
redis_map.py.example
82 lines (78 loc) · 2.39 KB
/
redis_map.py.example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
# This file configures RedisBlaster and its routing.
# LOGIC: Redis' synchronous nature combined with large, hulking datasets that need to be scanned repeatedly and often make for poor scalability. Let's mitigate those bottlenecks by splitting up the data Redis has to scan across databases, and entire threads of execution across instances.
# If you just want to run things for development, or your production instance is very small, you do not need to change mappings at all.
# Otherwise, some careful changes could improve the performance of larger instances.
# Simple options for the faint of heart.
redis_host = 'kemono-redis'
redis_port = 6379
redis_password = None
###
###
###
# Available Redis nodes.
# Passed directly to `Cluster.hosts`.
nodes = {
0: { 'db': 0 }
}
# Options that apply to all nodes.
# Passed directly to `Cluster.host_defaults`.
node_options = {
'host': redis_host,
'port': redis_port,
'password': redis_password
}
# Top-level key prefixes ("keyspaces,") and their mappings to the nodes.
# NOTE: New keyspaces in the source code require addition and configuration here.
keyspaces = {
"account": 0,
"saved_key_import_ids": 0,
"saved_keys": 0,
"top_artists": 0,
"artists_faved": 0,
"artists_faved_count": 0,
"top_artists_recently": 0,
"artists_recently_faved_count": 0,
"random_artist_keys": 0,
"non_discord_artist_keys": 0,
"non_discord_artists": 0,
"artists_by_service": 0,
"artist": 0,
"artist_post_count": 0,
"artist_post_offset": 0,
"artist_last_updated": 0,
"artists_by_update_time": 0,
"unapproved_dms": 0,
"dms": 0,
"all_dms": 0,
"all_dms_count": 0,
"all_dms_by_query": 0,
"all_dms_by_query_count": 0,
"dms_count": 0,
"favorite_artists": 0,
"favorite_posts": 0,
"artist_favorited": 0,
"post_favorited": 0,
"posts_by_artists": 0,
"posts_by_favorited_artists": 0,
"notifications_for_account": 0,
"random_post_keys": 0,
"all_post_keys": 0,
"post": 0,
"comments": 0,
"posts_by_artist": 0,
"artist_posts_offset": 0,
"is_post_flagged": 0,
"next_post": 0,
"previous_post": 0,
"importer_logs": 0,
"ratelimit": 0,
"all_posts": 0,
"all_posts_for_query": 0,
"global_post_count": 0,
"global_post_count_for_query": 0,
"lock": 0,
"lock-signal": 0,
# Kitsune Pubsub
"imports": 0,
"running_imports": 0
}