首页 文章 精选 留言 我的

精选列表

搜索[压缩算法],共10000篇文章
优秀的个人博客,低调大师

elasticsearch 2.2+ index.codec: best_compression启用压缩

官方说法,来自https://www.elastic.co/guide/en/elasticsearch/reference/2.2/index-modules.html#_static_index_settings: index.codecThedefaultvalue compresses stored data with LZ4 compression, but this can be set tobest_compressionwhich usesDEFLATEfor a higher compression ratio, at the expense of slower stored fields performance. 注意:2.1以下都是实验特性!2.2+才稳定! Now you can also enable better compression on the cold nodes by settingindex.codec: best_compressionin theirconfig/elasticsearch.ymlfile in order to be able to archive more data with the same amount of disk space. 摘自:https://www.elastic.co/blog/store-compression-in-lucene-and-elasticsearch 下面的数据摘自:https://www.elastic.co/blog/elasticsearch-storage-the-true-story-2.0 The test methodology hasn’t changed so you can check out theold blog postor theREADME in the Github repofor the details. Test String fields _all index size /w LZ4 index size /w DEFLATE expansion ratio /w LZ4 expansion ratio /w DEFLATE Impact of DEFLATE Structured data file. Original file size:67644119 1 analyzed and not_analyzed enabled 63047579 53131592 0.932 0.785 -0.157 2 analyzed and not_analyzed disabled 48271433 38327106 0.713 0.566 -0.206 3 not_analyzed disabled 38920800 29014796 0.575 0.428 -0.254 3b not_analyzed, except for 'message' field which is retained and analyzed disabled 65382872 49532858 0.966 0.732 -0.242 4 not_analyzed, except for 'agent' field which is analyzed disabled 43083702 32063602 0.636 0.474 -0.255 Semi-structured data file.Original file size:75037027 1 analyzed and not_analyzed enabled 100478376 82132782 1.339 1.094 -0.182 2 analyzed and not_analyzed disabled 75238480 56911638 1.002 0.758 -0.243 3 not_analyzed disabled 71866672 53553561 0.957 0.713 -0.254 3b not_analyzed, except for 'message' field which is retained and analyzed disabled 104638750 83824398 1.394 1.117 -0.198 4 not_analyzed, except for 'agent' field which isanalyzed disabled 72925624 54603882 0.971 0.727 -0.251 With the standard LZ4-based compression, the indexed data size to raw data size ratio ranged from 0.575 to 1.394. After enabling DEFLATE-based compression using the best_compression index.codec option, the indexed data size to raw data size ratio range came down to 0.429 to 1.117. Enabling the best_compression option resulted in a 15.7% to 25.6% reduction in indexed data size depending on the test parameters. As you can see, the ratio of index size to raw data size can vary greatly based on your mapping configuration, what fields you decide to create/retain, and the characteristics of the data set itself. We encourage you to run similar tests yourself to determine what the data compression/expansion factor is for your data set and application requirements. Conclusion There weremany amazing featuresadded to Elasticsearch 2.0 worth considering. As we’ve discussed, two of these new features in particular can reduce the hardware footprint required for an Elasticsearch cluster by 15-25% or more: 1) the addition of a best_compression option and 2) enabling doc_values by default. This allows us to get to compression ratios between 0.429 and 1.117. 本文转自张昺华-sky博客园博客,原文链接:http://www.cnblogs.com/bonelee/p/6269582.html,如需转载请自行联系原作者

优秀的个人博客,低调大师

利用函数计算对oss压缩文件做自动解压处理

前言 一个应用可能已经使用对象存储(Object Storage Service,简称OSS)来存放用户上传的图片,用户可以实现一个函数去下载图片进行处理,并将结果存入OSS或者其他服务。如果OSS能够帮助我们关注新上传的图片,并且自动的去调用执行相应的处理函数,用户就不需要再去自己调用函数了,从而简化了开发和使用流程。 函数计算提供了一种事件驱动的计算模型。函数的执行是由事件驱动的,函数计算触发器描述了一组规则,当某个事件满足这些规则,事件源就会触发相应的函数。 示例内容 在本教程示例中,一个被存入OSS的文件,如果它是以source/为前缀,并且后缀是.gz .tar .zip的文件,那么OSS就会自动的调用相应的函数进行解压处理。 # -*- coding: utf-8 -*- import oss2, json import

资源下载

更多资源
Mario

Mario

马里奥是站在游戏界顶峰的超人气多面角色。马里奥靠吃蘑菇成长,特征是大鼻子、头戴帽子、身穿背带裤,还留着胡子。与他的双胞胎兄弟路易基一起,长年担任任天堂的招牌角色。

腾讯云软件源

腾讯云软件源

为解决软件依赖安装时官方源访问速度慢的问题,腾讯云为一些软件搭建了缓存服务。您可以通过使用腾讯云软件源站来提升依赖包的安装速度。为了方便用户自由搭建服务架构,目前腾讯云软件源站支持公网访问和内网访问。

Spring

Spring

Spring框架(Spring Framework)是由Rod Johnson于2002年提出的开源Java企业级应用框架,旨在通过使用JavaBean替代传统EJB实现方式降低企业级编程开发的复杂性。该框架基于简单性、可测试性和松耦合性设计理念,提供核心容器、应用上下文、数据访问集成等模块,支持整合Hibernate、Struts等第三方框架,其适用范围不仅限于服务器端开发,绝大多数Java应用均可从中受益。

WebStorm

WebStorm

WebStorm 是jetbrains公司旗下一款JavaScript 开发工具。目前已经被广大中国JS开发者誉为“Web前端开发神器”、“最强大的HTML5编辑器”、“最智能的JavaScript IDE”等。与IntelliJ IDEA同源,继承了IntelliJ IDEA强大的JS部分的功能。

用户登录
用户注册