Skip to content
A Distributed Redis Protocol Compatible NoSQL Database
Go Other
  1. Go 99.6%
  2. Other 0.4%
Branch: master
Clone or download
Latest commit 668ac9b Jan 17, 2020
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin/titan
command
conf config: use mocktikv:// as the default pd address Jan 16, 2020
context Merge branch 'titan_sync' of https://github.com/piaoairy219/titan int… Apr 30, 2019
db
docs-cn Rename project Nov 13, 2018
docs
encoding feat(resp): use BytesArray instead of BytesArrayOnce Dec 26, 2019
metrics gomod: fix compiling errors Jan 6, 2020
proposals Merge pull request #155 from distributedio/rename-tikv Nov 26, 2019
server Use tmp files for tls testing Jun 10, 2019
tools Merge pull request #145 from zzstorage/master Dec 11, 2019
.codelingoignore
.gitignore update doc according we have already supported reverse operations Dec 24, 2019
.travis.yml travis: update go version Jan 7, 2020
CODE_OF_CONDUCT.md
Dockerfile update docker image builder version to support go mod Dec 30, 2019
LICENSE Create LICENSE Nov 14, 2018
Makefile Merge branch 'master' into master Sep 4, 2019
README.md docs: refine the documentation Jan 16, 2020
client.go
codelingo.yaml Add codelingo.yaml file at project root. Feb 13, 2019
docker-compose.yml
go.mod config: use mocktikv:// as the default pd address Jan 16, 2020
titan.go
util.go

README.md

Titan

Build Status Go Report Card Coverage Status Coverage Status Discourse status

A distributed implementation of Redis compatible layer based on TiKV

Why Titan?

  • Completely compatible with redis protocol
  • Full distributed transaction with strong consistency
  • Multi-tenancy support
  • No painful scale out
  • High availability

Thanks TiKV for supporting the core features. The project is developed and open sourced by the Beijing Infrastructure Team at Meitu and has been donated to DistributedIO org.

Architecture

titan

Quick start

Can't wait to experiment Titan? Just follow 2 steps:

  1. curl -s -O https://raw.githubusercontent.com/distributedio/titan/master/docker-compose.yml
  2. docker-compose up

Then connect to titan use redis-cli

redis-cli -p 7369

Enjoy!

Installation

SetUp TiKV cluster

Titan works with 2 tidb components:

  • TiKV
  • Pd

To setup TiKV and PD, please follow official instruction

Run Titan

  • Build the binary
go get github.com/distributedio/titan
cd $GOPATH/src/github.com/distributedio/titan
make 
  • Edit the configration file
pd-addrs="tikv://your-pd-addrs:port"
  • Run titan
./titan

For more details about Deploy Titan, click here.

Commands supporting status

See the details of the commands supporting status

command status
Connections Almost Fully Supported
Transactions Supported
Server Almost Fully Supported
Keys Supported
Strings Almost Fully Supported
List Almost Fully Supported
Hashes Supported
Sets Almost Fully Supported
Sorted Sets Almost Fully Supported
Geo Not Supported Yet
Hyperloglog Not Supported Yet
Pub/Sub Not Supported Yet
Scripting Not Supported Yet
Streams Not Supported Yet

Benchmarks

Refer to the benchmark docs for more details. It is shared on Baidu Disks, use the code hzt6 to gain the permission.

Basic benchmarking result.

Get

Get command benchmark

Set

Set command benchmark

For more info, please vist here Titan Benchmarks

FAQ

FAQ

Roadmap

View our Roadmap

You can’t perform that action at this time.