博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
vitess
阅读量:6464 次
发布时间:2019-06-23

本文共 2319 字,大约阅读时间需要 7 分钟。

We will be presenting Vitess at the upcoming MySQL conference: .

If you are planning to go, the following promotional code should give you a 10% discount: YTV-PL12.

Introduction

The main goal of the vitess project is to provide servers and tools to facilitate scaling of MySQL databases for the web. The  page has more details on this.

Vtocc is the first usable product of vitess. It acts as a front-end to MySQL providing an RPC interface that accepts and transmits SQL commands. It is capable of efficiently multiplexing a large number of incoming connections (10K+) over a small number of db connections at reasonable throughput (~10kqps). It also has an SQL parser which gives the server the ability to understand and intelligently reshape the queries it receives.

Vtocc is already being used in a large scale production environment. It is the core of YouTube's new MySQL serving infrastructure.

Feature List

  • A Python DBAPI 2.0 compliant client interface (vt_occ2.py).
  • A go database/sql compliant client interface.
  • Understands a variety of protocols over HTTP or direct TCP sockets.
  • Bind variables for queries, backed by a query cache: To avoid repeated parsing and enable efficient reuse of query plans.
  • Connection pooling.
  • Transaction management: Ability to limit the number of concurrent transactions and manage deadlines.
  • DML annotation: Every DML is rewritten to include a comment field at the end of a query identifying the primary key of the rows it changed.
  • Zero downtime restarts.
  • Built-in fail-safes
    • Query consolidation: The ability to reuse the results of an in-flight query to any subsequent requests that were received while the query was still executing.
    • Limit the max number of rows that can be returned by a query and fail if limit is exceeded.
    • Transaction killer for transactions that are open for too long.
    • Integrated query killer for queries that take too long to return data.
    • Discard idle backend connections to avoid offline db errors.

Vtocc is still under active development. Here is the list of upcoming features:

  • A consistent row cache and the ability to rewrite queries to maximize utilization of the row cache.
  • A binlog interpreter that can parse the DML documentation injected by vtocc to provide a stream of updates for rows that have changed.
  • Persistent (reserved) connections.

 

Resources

转载地址:http://gahzo.baihongyu.com/

你可能感兴趣的文章
C#中禁止程序多开
查看>>
分布式缓存Redis使用以及原理
查看>>
[LeetCode] Number of 1 Bits 位操作
查看>>
数据结构与算法JavaScript描述——队列
查看>>
练习二:结对练习
查看>>
JSON中JObject和JArray,JValue序列化(Linq)
查看>>
onclick与addEventListener的区别
查看>>
杂七杂八
查看>>
samba、nginx服务
查看>>
Activity竟然有两个onCreate方法,可别用错了
查看>>
Linux经常使用命令(十六) - whereis
查看>>
Tomcat
查看>>
插件编译 版本问题
查看>>
android中TextView的阴影设置
查看>>
core dump相关
查看>>
MySQL如何导出带日期格式的文件
查看>>
Linux五种IO模型
查看>>
Bootstrap技术: 模式对话框的使用
查看>>
小知识,用myeclipes找jar
查看>>
数据库----索引的概念及创建
查看>>