I have a google cloud memory store instance M2 tier with 10GB capacity. I did not set any maxmemory-gb for it. By default it sets equals to instance capacity. Now my question is when it reaches the threshold it starts to eviction least recently used keys (again default setting). What are pros and cons of setting maxmemory lower than the instance capacity. Of course apart from losing some provisioned memory that is paid for. I know it is an opinionated question but the main point is, is the default setting really safe?
1
There are 1 best solutions below
Related Questions in REDIS
- How to Socket.IO Multithreading on a Raspberry Pi?
- How to get the session ID returned by cookie with spring-session-data-redis
- Cannot serialize (Spring Boot)
- JEDIS/REDIS 'ON' Keyword or broken query?
- Quart_Sessions Redis deletes keys and create backups instead
- Docker builds redis, mounts the host network and uses 192.168.*.* to access the redis server and is denied
- Need a script to fetch the redis latency values over 20 seconds and store the results in a file
- Service in Docker Compose not connecting to Redis container in docker, Failed to connect to any host resolved for DNS name
- Install redis vector database on GCP in a GKE cluster
- how to avoid while loop while waiting for future complete?
- Is it possible to append the data in Redis command
- Not able to inject RedisCache/SyncCache/StatefulRedisConnection beans in micronaut 4.2.1 version
- RedisConnectionFailureException intermittently
- using redis timeseries in aredes error =>Error handling publish event: [ErrorReply: ERR TSDB: invalid value]
- HttpResponseMessage caching using redis
Related Questions in REDIS-CACHE
- Multiple Cache Layer in Spring Boot with Eviction Policy
- REDIS Keys in Kubernetes deleted after 24 hours of migrating to Azure Cache for Redis
- Replica node automatically upgraded to primary node AWS Elasticache Redis
- How to implement distributed Cache in the .net Framework Project of version 4.8
- getting class cast exception when using redis cache
- How can we achieve drift identification in redis cache?
- Redis Cache in a .NET framework 4.6.2 application
- Unable to fetch value from Redis Cache using ReactiveRedisTemplate
- Django Cache Causes Missing Staticfiles on Azure
- Redis serialization desrialization issue with cache
- springframework.data.redis.serializer.SerializationException: Cannot serialize
- Google cloud memory store redis by default sets maxmemory-gb equals to instance memory. Does this pose a problem for eviction when cache is full?
- Populate the redis cache from an external API
- Delete all Redis keys starting with a String using @CacheEvict
- Which charatcer are not allowed in "RedisValue" value argument in redis cache?
Related Questions in GOOGLE-CLOUD-MEMORYSTORE
- Getting "Unknown Reply" while connecting GCP redis instance from jedis java client
- How should I Handle IAM Authentication Token Expiration in Node.js for Memorystore Redis
- Rotating Redis TLS Certificates Without Downtime
- How do I set/get values in Memcached MemoryStore from Cloud functions?
- Access Google Cloud Memorystore from other project / network
- Cloud Functions are unable to establish a connection with the Memorystore Redis instance
- Redis (via GCP Memorystore) is out of memory although maxmemory-policy is allkeys-lru
- Unable to connect to GCP Redis Memory store from Cloud run spring boot application - although VPC is configured and both are created in same region
- Google Cloud Dataflow's Code Coverage on the new code is not passing the threshold in SonarQube after Java 17 upgrade
- Is direct data ingestion from pub/sub to memorystore possible?
- Can't connect to Redis instance hosted by GCP Memotystore to my AWS EC2
- getting EOFExceptions in streaming pipeline to insert data into memoystore redis instance with TLS enabled using dataflow pipeline
- Arbitrary io.lettuce.core.RedisCommandTimeoutException in Lettuce Redis client
- Connecting to GCP Redis instance with AUTH & TLS enabled using cloud functions (python)
- Error while disabling Redis API in Google Cloud
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
The default setting of
maxmemory-gbequal to the instance memory is generally safe, but it may cause eviction problems for workloads with high data volumes and a number of keys. In addition to reserving memory for other system processes, settingmaxmemory-gbto a smaller number than the instance memory can prevent eviction problems, but it can also lead to poor performance and more frequent key eviction. It is advised to modify maxmemory-gb according to the demands and capabilities of your job.The High Availability configuration for the Standard instance tier includes a failover to replicate the data asynchronously. The replica will be promoted to the main instance in Standard instances if any of the aforementioned occurrences occur, but the memory won't be changed. However, due to the asynchronous nature of replication, the only data that might be lost are the writes that weren't propagated to the replica during the failover. However, the failover procedure is typically quick, taking only a few seconds to complete.
In order to prevent the instance from losing memory if this event occurs, you can set the behavior of the instances when they exceed their maximum memory capacity and use the
maxmemory-policy=noevictionflag when configuring them. For further information, go to the official Redis documentation.