在windows上couchdb的最小部署

发布于 2024-09-02 18:54:11 字数 983 浏览 4 评论 0原文

我想将 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 the megaco 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

梦途 2024-09-09 18:54:11

我刚刚在 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

看起来您确实能够删除大块的内容,并且 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.

   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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文