Questions tagged [twemproxy]

Twemproxy (nutcracker) is a fast, light-weight proxy for memcached and redis built by Twitter.

also known as nutcracker, is a fast and lightweight proxy for memcached and redis protocol. It was primarily built to reduce the connection count on the backend caching servers.

It was open-sourced by Twitter, under the Apache License, Version 2.0.

Features

  • Fast
  • Lightweight
  • Maintains persistent server connections
  • Keeps connection count on the backend caching servers low
  • Enables pipelining of requests and responses
  • Supports proxying to multiple servers
  • Supports multiple server pools simultaneously
  • Shard data automatically across multiple servers
  • Implements the complete memcached ascii and redis protocol
  • Easy configuration of server pools through a YAML file
  • Supports multiple hashing modes including consistent hashing and distribution
  • Can be configured to disable nodes on failures
  • Observability through stats exposed on stats monitoring port
  • Works with Linux, *BSD, OS X and Solaris (SmartOS)

Resources

37 questions
0
votes
1 answer

twemproxy (nutcracker) port suddenly becomes unavailable

I have this twemproxy_sentinel setup that uses their default port 22122 as entry and forwards the requests to underlying redis servers running on port 6380, 6381. Every now and then, the port 22122 becomes unavailable. Thus clients using the redis…
Chris Lee
  • 123
  • 1
  • 1
  • 7
0
votes
1 answer

Uneven cache hits

I have integrated twemproxy into web layer and I have 6 Elasticache(1 master , 5 read replicas) I am getting issue that the all replicas have same keys everything is same but cache hits on one replica is way more than others and I performed several…
Rohit
  • 27
  • 7
0
votes
1 answer

ServiceStack.Redis.RedisResponseException Using Redis Cluster and Twemproxy

I have a 3 master / 3 slave Redis cluster running on a single Ubuntu 14_04 machine. I followed the guide published here when creating the cluster. I also have Nutcracker running on the same machine. Everything starts up and appears to be…
Chris R.
  • 58
  • 4
0
votes
1 answer

Unable to connect Twemproxy using StackExchange redis in C#

I am trying to execute C# code below with StackExchange redis using IP address of the TWEMPROXY server and it gives error below: An unhandled exception of type 'StackExchange.Redis.RedisConnectionException' occurred in …
Ritesh D
  • 228
  • 1
  • 6
0
votes
1 answer

twemproxy (nutcracker) adding redis instance and keeping consistency

I set up twemproxy (nutcracker) with 2 redis servers as backends including slaves, sentinel and failover. As soon as I add another redis server some of the keys are not able to be read, probably due to twemproxy redirecting to another redis. How do…
iniQde
  • 1
  • 1
0
votes
1 answer

twemproxy(nutcracker), Error: Protocol error, got "{" as reply type byte

I operated redis through twemproxy, it can connect to the redis instance, but can't execute any command. No matter what I input, it threw the error Error: Protocol error, got "{" as reply type byte and then, it exited How to solve this?
simon_xia
  • 2,394
  • 1
  • 20
  • 32
0
votes
1 answer

Connecting sidekiq to twemproxy(nutcracker)

I'm trying to connect my sidekiq to a twemproxy instead of a direct Redis connection, but I'm getting the following error: 2013-09-30T17:16:53Z 23329 TID-3q3o4 INFO: Booting Sidekiq 2.12.1 using redis://localhost:22121 with options…
felipeclopes
  • 4,010
  • 2
  • 25
  • 35
1 2
3