Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/redis/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Google cloud platform 如果内存超过90%,GCP刷新redis_Google Cloud Platform_Redis_Stackdriver_Google Cloud Monitoring_Google Cloud Memorystore - Fatal编程技术网

Google cloud platform 如果内存超过90%,GCP刷新redis

Google cloud platform 如果内存超过90%,GCP刷新redis,google-cloud-platform,redis,stackdriver,google-cloud-monitoring,google-cloud-memorystore,Google Cloud Platform,Redis,Stackdriver,Google Cloud Monitoring,Google Cloud Memorystore,触发触发器时,有没有办法刷新我的GCP Redis 在我的具体案例中,我使用Google StackDriver指标来监控和获得通知。我希望当我的Redis内存超过90%时,它会自动刷新。 有没有办法执行此操作?缩放基本层实例会刷新缓存,因此我的建议是使用较小的上限(适当的逐出策略)配置实例,然后根据需要进行缩放 gcloud redis instances update instance id--update redis config maxmemory policy=policy 或者,您可

触发触发器时,有没有办法刷新我的GCP Redis

在我的具体案例中,我使用Google StackDriver指标来监控和获得通知。我希望当我的Redis内存超过90%时,它会自动刷新。
有没有办法执行此操作?

缩放基本层实例会刷新缓存,因此我的建议是使用较小的上限(适当的逐出策略)配置实例,然后根据需要进行缩放

gcloud redis instances update instance id--update redis config maxmemory policy=policy

或者,您可以设置一个web服务来执行适当的CLI命令,但这需要更多的工作