小内存的VPS中使用MongoDB是否合适?
大家讲道理
大家讲道理 2017-04-21 11:18:02
0
8
733

个人写的一个小站,用MongoDB作为数据库,最近准备上线。

正好VPS即将到期,准备换Linode 512MB那款,听说MongoDB很耗内存,不知道跑起来会不会卡,会占用多少内存呢?要不要做什么优化?
如果不合适,那至少要多大的内存才适合跑MongoDB呢?

大家讲道理
大家讲道理

光阴似箭催人老,日月如移越少年。

reply all(8)
迷茫

Mongodb cannot regulate its memory size. It uses as much memory as it has, so some people say that it will occupy more memory, but if the memory is not enough, it will not occupy it. Of course, disk swapping is performed at this time, performance It will get worse depending on your thermal data. My suggestion is to just keep your own small site, that is, you will know when the mule is pulled out by the horse, and mognodb's horizontal expansion is very convenient, so you don't have to worry about future expansion issues.

左手右手慢动作

There is no need to use mongodb for vps business. If you play around, mongodb has very high memory performance, but if the memory is not enough, it will not occupy excess memory and will only write to the disk, so the performance is very low. In short, the machine will not hang because mongodb eats memory.

Ty80

It depends on your application, how much data it expects to have in total, how much hot data is included, how much memory it needs to occupy, and then look at the free memory of the VPS to know whether it is suitable.

迷茫

I also plan to use mongodb. I support the poster’s use. Personal website is nothing more than tossing. You can find opportunities to practice more

Ty80

Since it is a vps, the business volume is definitely not much, so why use mongodb? The simplest way is to use sqlite or mysql. There is no need to use mongodb

小葫芦

It’s better not to use this thing! Use database for vps

小葫芦

I think a database would be more suitable.

洪涛

There is no need to try mongodb with vps,

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template