MongoDB + WiredTiger +压缩-压缩是在客户端还是在服务器上完成? [英] MongoDB + wiredTiger + compression - is compression done on client or server?

查看:92
本文介绍了MongoDB + WiredTiger +压缩-压缩是在客户端还是在服务器上完成?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

MongoDB 2.8-rc0通过 wiredtiger 存储引擎支持压缩,如发行说明.

MongoDB 2.8-rc0 supports compression via the wiredtiger storage engine, as described in the release notes.

我的问题是:数据是在客户端级别还是在服务器级别的API中压缩的?基本上,我想知道启用压缩是否会减少网络上的带宽需求(以及如果我的服务器和客户端位于不同的主机上,则副作用会增加吞吐量并减少延迟).或等同于以透明压缩在磁盘顶部运行旧的mmap存储引擎,例如,如在这个吉拉里?

My question is: is data compressed in the API at the client level, or on the server? Basically I want to know whether enabling compression will reduce the bandwidth requirement over the network (and as a side-effect increase throughput & reduce latency), if my server and client are sitting on different hosts. Or is this equivalent to running the old mmap storage engine on top of a disk with transparent compression, as discussed for example in this jira?

有关新存储引擎的一些信息这里,但是我对mongoDB的经验不多,我正在寻找已经尝试过此方法的人的反馈.

There is some information about the new storage engine here, but I don't have much experience with mongoDB and I'm looking for feedback from somebody who has already experimented with this.

推荐答案

实际上不是StackOerflow的主题,因此确实需要进行迁移.我可以肯定的是,当它们被标记为此类时,您会有所收获.

Not a topic for StackOerflow really so this really needs to be migrated. I'm assured they are when flagged as such so you get something.

MongoDB 2.8中的WiredTiger(截至撰写时为Release Candidate)是默认的基本"mmap"解决方案的替代存储引擎机制,该解决方案在此版本中一直有效.

The WiredTiger inclusion in MongoDB 2.8 ( Release Candidate as of writing ) is an alternate storage engine mechanism to the default base "mmap" solution that has been current up until this release.

基本上,这里的简短"答案是压缩"是由服务器处理的,这主要是为了解决许多担心,即先前版本中MongoDB的数据存储格式已经过大.

Basically the "short" answer here is that the "compression" is handled by the server, and this is largely to address many concerns that that data storage format of MongoDB in previous releases has been quite excessive.

要与客户端"和服务器"(主机之间)之间的压缩"功能相关,现有协议使用BSON进行有线传输(可以选择通过SSL加密),但是更改不允许通过有线"无需外部工具即可进行压缩.

To relate to the "compression" capabilities between "client" and "server" ( meaning between hosts ), the existing protocol uses BSON over wire transfers ( optionally encrypted via SSL ) but the changes don't allow "over the wire" compression without external utilities.

因此,包含WiredTiger存储引擎的部分目的是减少文件存储大小,而不是真正的网络传输.

So part of the point of the WiredTiger storage engine inclusion is all about reducing the file storage size and not really about network transfer.

这篇关于MongoDB + WiredTiger +压缩-压缩是在客户端还是在服务器上完成?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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