Google cloud platform 如果内存超过90%,GCP刷新redis
触发触发器时,有没有办法刷新我的GCP Redis 在我的具体案例中,我使用Google StackDriver指标来监控和获得通知。我希望当我的Redis内存超过90%时,它会自动刷新。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 或者,您可
有没有办法执行此操作?缩放基本层实例会刷新缓存,因此我的建议是使用较小的上限(适当的逐出策略)配置实例,然后根据需要进行缩放
gcloud redis instances update instance id--update redis config maxmemory policy=policy
或者,您可以设置一个web服务来执行适当的CLI命令,但这需要更多的工作