在windows上couchdb的最小部署
我想将 couchdb 用于 Windows 上的仅客户端应用程序(面向文档的结构和同步功能对我来说是完美的)。
这里有一个 Windows 安装程序包,但安装程序本身大约有 45 个MB,安装后在我的硬盘上占用了 100 多 MB。这对于我的(相对较小的)应用程序来说太过分了。
我注意到在couchdb/lib 子目录中有很多“src”目录。我一直在尝试删除其中一些,但似乎并没有破坏系统。
现在我想知道运行本地 couchdb 服务器所需的“最小”文件集(最好是仅二进制文件)是什么。是否已经做出了一些努力来创建这样一个部署友好的安装程序?或者任何人都可以给出一些(甚至非常笼统的)提示如何创建它?这样的安装至少需要多少磁盘空间?
不用说,我对 couchdb 内部结构和 Erlang 系统都不熟悉:)。但也许我可以弄清楚我是否得到了一些方向(或者如果有人告诉我这是不可能的或根本没有意义,我可以停止尝试......)
无论如何谢谢!
编辑
感谢 skaffmann,我使用 WinDirStat 进行了分析,这使我产生了以下附加问题:
- 源文件(即
.erl
)文件是否正确?不需要进行操作吗? (这将减少大约 40 MB 的大小)。 - couchdb 是否需要所有已编译的文件(即
.beam
)文件?例如,couchdb 中似乎有一个完整的 wxwidgets 库,但我根本看不到,哪里需要它?另外,megaco 库(媒体网关协议?)似乎属于“标准”erlang 发行版,但对 couchdb 没有意义?
(我将尝试通过文件类型/库删除它们并在此处发布更新,以防万一有人感兴趣......)
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).
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. 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. 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. 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 :). 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:
- Is it correct, that the source-Files (i.e.
.erl
) files would not be needed for operation? (This would reduce the size by about 40 MB). - Are all compiled files (i.e.
.beam
) files required by couchdb? For example, there seems to be a complete wxwidgets library within couchdb and I cannot see at all, where that would be needed? Also themegaco
library (media gateway protocol?) seems to belong to a "standard" erlang distribution but makes no sense for couchdb?
(I will just try to remove them by filetype/library and post updates here just in case anyone is interested ...)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我刚刚在 Windows couchdb 安装上运行了 WinDirStat ,它很有启发性,向您展示了所有空间被占用的位置。
看起来您确实能够删除大块的内容,并且 WinDirStat 会告诉您哪些部分值得关注。
I just ran WinDirStat over my windows couchdb install, and it's quite illuminating, showing you where all the space is being taken up.
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.