Skip to content

Use with AWS Elasticache Reds in cluster mode #202

@Rodeoclash

Description

@Rodeoclash

We're getting an odd error when attempting to set flags with our Redis which is hosted on Elasticache using the aws_elasticache_serverless_cache mode.

iex(super_api@ip-10-0-32-236)1> FunWithFlags.UI.Utils.create_flag_with_name("use_aws_for_phone_verification")
{:error,
 "Redis Error: one of the commands failed: [\"OK\", \"QUEUED\", \"QUEUED\", %Redix.Error{message: \"CROSSSLOT Keys in request don't hash to the same slot\"}]"}

This appears to be related to the code here:

https://github.com/tompave/fun_with_flags/blob/master/lib/fun_with_flags/store/persistent/redis.ex#L48-L53

Any thoughts on how to approach a fix? 🙂

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions