-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #198 from utxostack/feat/cluster-n-redis
feat: use cluster and add redis for bullmq queue
- Loading branch information
Showing
10 changed files
with
158 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
# Redis configuration | ||
# | ||
# Example: https://raw.githubusercontent.com/redis/redis/7.4/redis.conf | ||
|
||
################################## NETWORK ##################################### | ||
bind 0.0.0.0 | ||
|
||
################################ SNAPSHOTTING ################################ | ||
|
||
# Save the DB to disk. | ||
# | ||
# save <seconds> <changes> [<seconds> <changes> ...] | ||
# | ||
# Redis will save the DB if the given number of seconds elapsed and it | ||
# surpassed the given number of write operations against the DB. | ||
# | ||
# Snapshotting can be completely disabled with a single empty string argument | ||
# as in following example: | ||
# | ||
# save "" | ||
# | ||
# Unless specified otherwise, by default Redis will save the DB: | ||
# * After 3600 seconds (an hour) if at least 1 change was performed | ||
# * After 300 seconds (5 minutes) if at least 100 changes were performed | ||
# * After 60 seconds if at least 10000 changes were performed | ||
# | ||
# You can set these explicitly by uncommenting the following line. | ||
# | ||
save 3600 1 300 100 60 10000 | ||
|
||
############################## APPEND ONLY MODE ############################### | ||
|
||
# By default Redis asynchronously dumps the dataset on disk. This mode is | ||
# good enough in many applications, but an issue with the Redis process or | ||
# a power outage may result into a few minutes of writes lost (depending on | ||
# the configured save points). | ||
# | ||
# The Append Only File is an alternative persistence mode that provides | ||
# much better durability. For instance using the default data fsync policy | ||
# (see later in the config file) Redis can lose just one second of writes in a | ||
# dramatic event like a server power outage, or a single write if something | ||
# wrong with the Redis process itself happens, but the operating system is | ||
# still running correctly. | ||
# | ||
# AOF and RDB persistence can be enabled at the same time without problems. | ||
# If the AOF is enabled on startup Redis will load the AOF, that is the file | ||
# with the better durability guarantees. | ||
# | ||
# Please check https://redis.io/topics/persistence for more information. | ||
appendonly yes | ||
|
||
# Redis can create append-only base files in either RDB or AOF formats. Using | ||
# the RDB format is always faster and more efficient, and disabling it is only | ||
# supported for backward compatibility purposes. | ||
aof-use-rdb-preamble yes | ||
|
||
# Set a memory usage limit to the specified amount of bytes. | ||
# When the memory limit is reached Redis will try to remove keys | ||
# according to the eviction policy selected (see maxmemory-policy). | ||
# | ||
# If Redis can't remove keys according to the policy, or if the policy is | ||
# set to 'noeviction', Redis will start to reply with errors to commands | ||
# that would use more memory, like SET, LPUSH, and so on, and will continue | ||
# to reply to read-only commands like GET. | ||
# | ||
# This option is usually useful when using Redis as an LRU or LFU cache, or to | ||
# set a hard memory limit for an instance (using the 'noeviction' policy). | ||
# | ||
# WARNING: If you have replicas attached to an instance with maxmemory on, | ||
# the size of the output buffers needed to feed the replicas are subtracted | ||
# from the used memory count, so that network problems / resyncs will | ||
# not trigger a loop where keys are evicted, and in turn the output | ||
# buffer of replicas is full with DELs of keys evicted triggering the deletion | ||
# of more keys, and so forth until the database is completely emptied. | ||
# | ||
# In short... if you have replicas attached it is suggested that you set a lower | ||
# limit for maxmemory so that there is some free RAM on the system for replica | ||
# output buffers (but this is not needed if the policy is 'noeviction'). | ||
maxmemory 2gb | ||
maxmemory-policy noeviction |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters