使用etcd作为主要存储/数据库? [英] Using etcd as primary store/database?

查看:1175
本文介绍了使用etcd作为主要存储/数据库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

etcd 可以用作可靠的数据库替换吗?由于它是分布式的,并且以持久的方式存储键/值对,因此它将是nosql数据库的理想选择.此外,它还具有出色的API.有人可以解释为什么这不是问题吗?

Can etcd be used as reliable database replacement? Since it is distributed and stores key/value pairs in a persistent way, it would be a great alternative nosql database. In addition, it has a great API. Can someone explain why this is not a thing?

推荐答案

etcd

  • etcd 是高可用的键值存储,Kubernetes使用它来持久存储所有它的对象,例如部署,吊舱,服务信息.
  • etcd具有很高的访问控制权,它只能使用主节点中的API进行访问.集群中除主节点之外的节点无权访问 etcd存储.
  • etcd is a highly available key-value store which Kubernetes uses for persistent storage of all of its objects like deployment, pod, service information.
  • etcd has high access control, that it can be accessed only using API in master node. Nodes in the cluster other than master do not have access to etcd store.

nosql数据库

  • There are currently more than than 255 nosql databases, which can be broadly classified into Key-Value based, Column based, Document based and Graph based. Considering etcd as an key-value store, lets see the available nosql key-value data stores.

Redis,memcached和memcacheDB 是流行的键值存储.这些是通用的分布式内存缓存系统,通常用于通过在内存中缓存数据和对象来加速动态数据库驱动的网站.

Redis, memcached and memcacheDB are popular key-value stores. These are general-purpose distributed memory caching system often used to speed up dynamic database-driven websites by caching data and objects in memory.

为什么etcd不能替代

  • etcd不能存储在内存(ram)中,它们只能存储在磁盘存储中,而redis可以缓存在ram中,也可以存储在磁盘中.

  • etcd cannot be stored in memory(ram) they can only be persisted in disk storage, whereas redis can be cached in ram and can also be persisted in disk.

etcd没有各种数据类型.它仅用于存储kubernetes对象.但是redis和其他键值存储具有数据类型的灵活性.

etcd does not have various data types. It is made to store only kubernetes objects. But redis and other key-value stores have data-type flexibility.

etcd仅保证高可用性,但不能为您提供快速的查询和索引编制.所有nosql键值存储都是以快速查询和搜索为目标而构建的.

etcd guarantees only high availabilty, but does not give you the fast querying and indexing. All the nosql key-value stores are built with the goal of fast querying and searching.

事件虽然很明显不能将etcd用作替代的nosql数据库,但我认为以上解释将证明它不是合适的替代方案.

Eventhough it is obvious that etcd cannot be used as an alternative nosql database, I think the above explanation will prove it cannot be an suitable alternative.

这篇关于使用etcd作为主要存储/数据库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆