简体   繁体   English

在Windows上最小部署couchdb

[英]Minimal deployment of couchdb on windows

I'd like to use couchdb for a client-only application on Windows (the document-oriented structure and the synchronization features would be perfect for me). 我想在Windows上使用couchdb作为一个仅限客户端的应用程序(面向文档的结构和同步功能对我来说是完美的)。

There is a Windows installer package here , but the installer itself has about 45 MB, when installed it takes more than 100 MB on my HD. 有一个Windows安装程序包在这里 ,但安装程序本身有大约45 MB,安装时需要在我的HD 100多MB。 This is far to much for my (relatively small) application. 对于我的(相对较小的)应用程序来说,这是非常重要的。

I noticed that there are a lot of "src" directories in the couchdb/lib subdirs. 我注意到couchdb/lib子目录中有很多“src”目录。 I've been experimenting with removing some of them and it didn't seem to break the system. 我一直在尝试删除其中的一些,它似乎没有破坏系统。

Now I'm wondering what would be the "minimal" set of files (preferably binary-only) that would be needed in order to run a local couchdb server. 现在我想知道为了运行本地couchdb服务器需要什么样的“最小”文件集(最好是二进制文件)。 Are there already any efforts to create such a deployment-friendly installer? 是否已经有任何努力来创建这样一个部署友好的安装程序? Or could anyone give some (even very general) hints how to create it? 或者任何人都可以提供一些(甚至非常一般)提示如何创建它? How much disk space would be minimally required for such an installation? 这样的安装需要多少磁盘空间?

Needless to say that I'm not at all familiar with neither the couchdb internals nor the Erlang system :). 不用说,我根本不熟悉couchdb内部和Erlang系统:)。 But perhaps I could figure out if I got some direction (or I could stop trying if someone told me that this would be impossible or didn't make sense at all ...) 但也许我可以弄清楚我是否有方向(或者我可以停止尝试,如果有人告诉我这根本不可能或根本没有意义......)

Thanks anyway! 不管怎么说,还是要谢谢你!

EDIT 编辑

Thanks to skaffmann, I did the analysis using WinDirStat which led me to the following additional questions: 感谢skaffmann,我使用WinDirStat进行了分析,这引出了以下其他问题:

  • Is it correct, that the source-Files (ie .erl ) files would not be needed for operation? 是否正确,操作不需要source-Files(即.erl )文件? (This would reduce the size by about 40 MB). (这会减小大约40 MB的大小)。
  • Are all compiled files (ie .beam ) files required by couchdb? 是否所有已编译的文件(即.beam )文件都需要couchdb? For example, there seems to be a complete wxwidgets library within couchdb and I cannot see at all, where that would be needed? 例如,在couchdb中似乎有一个完整的wxwidgets库,我根本看不到,需要哪些? Also the megaco library (media gateway protocol?) seems to belong to a "standard" erlang distribution but makes no sense for couchdb? 此外, megaco库(媒体网关协议?)似乎属于“标准”erlang发行版,但对couchdb没有意义?

(I will just try to remove them by filetype/library and post updates here just in case anyone is interested ...) (我会尝试通过文件类型/库删除它们并在此发布更新以防万一有人感兴趣...)

I just ran WinDirStat over my windows couchdb install, and it's quite illuminating, showing you where all the space is being taken up. 我刚刚在我的windows couchdb安装上运行WinDirStat ,它非常有启发性,向您显示所有空间被占用的位置。

   119.7 MB D:\apps\CouchDB
    93.5 MB D:\apps\CouchDB\lib
    20.0 MB D:\apps\CouchDB\bin
     3.9 MB D:\apps\CouchDB\erts-5.7.3
     1.0 MB D:\apps\CouchDB\<Files>
   932.1 KB D:\apps\CouchDB\share
   323.7 KB D:\apps\CouchDB\var
    39.2 KB D:\apps\CouchDB\releases
     5.8 KB D:\apps\CouchDB\etc

93.5 MB D:\apps\CouchDB\lib
28.2 MB D:\apps\CouchDB\lib\megaco-3.11.3
 8.0 MB D:\apps\CouchDB\lib\wx-0.98.3
 6.4 MB D:\apps\CouchDB\lib\erl_interface-3.6.3
 4.8 MB D:\apps\CouchDB\lib\stdlib-1.16.3
 4.0 MB D:\apps\CouchDB\lib\snmp-4.13.5
 3.0 MB D:\apps\CouchDB\lib\xmerl-1.2.1
 2.6 MB D:\apps\CouchDB\lib\compiler-4.6.3
 2.6 MB D:\apps\CouchDB\lib\asn1-1.6.11
 2.6 MB D:\apps\CouchDB\lib\hipe-3.7.3
 2.4 MB D:\apps\CouchDB\lib\cosNotification-1.1.11
 2.3 MB D:\apps\CouchDB\lib\kernel-2.13.3
 2.3 MB D:\apps\CouchDB\lib\orber-3.6.13
 1.9 MB D:\apps\CouchDB\lib\inets-5.1.3
 1.8 MB D:\apps\CouchDB\lib\ssl-3.10.4
 1.7 MB D:\apps\CouchDB\lib\mnesia-4.4.11
 1.3 MB D:\apps\CouchDB\lib\tools-2.6.4
 1.1 MB D:\apps\CouchDB\lib\dialyzer-2.0.0
 1.1 MB D:\apps\CouchDB\lib\public_key-0.3
 1.1 MB D:\apps\CouchDB\lib\debugger-3.2

It does look like you'll be able to remove large chunks of stuff, and WinDirStat will tell you which bits are worth concentrating on. 看起来你可以删除大块的东西,WinDirStat会告诉你哪些位值得关注。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM