Skip to content

Conversation

@stevsmit
Copy link
Member

@stevsmit stevsmit commented Aug 5, 2022

@syed
Copy link

syed commented Aug 5, 2022

There are 3 possibilities for modelcache

  1. memcache (this is the default) you don't need to configure anything
  2. single redis instance with optional RO replicas. Config for this:
    DATA_MODEL_CACHE_CONFIG:
      engine: redis
      redis_config:
        primary:
            host: <host>
            port: <port>
            password: <password if ssl is true>
           ssl: <true | false >
        replica:
            host: <host>
            port: <port>
            password: <password if ssl is true>
           ssl: <true | false >
        

Here replica is optional and if you don't specify that all connections will go to the primary

  1. clustered redis instance. Config for this is:
    DATA_MODEL_CACHE_CONFIG:
      engine: rediscluster
      redis_config:
        startup_nodes:
          - host: <cluster-host>
            port: <port>
        password: <password if ssl: true>
        read_from_replicas: <true|false>
        skip_full_coverage_check: <true | false>
        ssl: <true | false > 

@stevsmit stevsmit force-pushed the projquay-3888 branch 4 times, most recently from cbb100c to e1de1da Compare August 5, 2022 19:02
@LiZhang19817
Copy link

/lgtm

@stevsmit stevsmit merged commit a244e45 into quay:master Aug 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants