I am learning MongoDB on Windows 7 machine with 4GB ram.
I installed MongoDB 3.2.Not possible to install vmware on my machine.
I would like to practice Cluster configuration/Sharding/Replication/mongodb ops center.
Is it possible to do on single windows machine.
Please share your suggestions.
Thanks & Regards,
try using containers like docker, it is lighter than virtual machine and will also add to your knowledge for knowing how to work with docker.
good luck.
Related
I have read a few articles that say that running MongoDB on Windows is a lot slower than Linux. They mention filesystems like XFS is better than NTFS etc, and that it's more designed for Linux.
Reference Why Mongodb performance better on Linux than on Windows?
So my question is, has anyone done any benchmarking of MongoDB performance on Windows (e.g installed directly on the server) vs the same machine (running Windows) but it running a VM (Ubuntu 18.04, XFS) via HyperV?
the same machine (running Windows) but it running a VM (Ubuntu 18.04, XFS) via HyperV
The reason why Linux performs better than Windows for MongoDB is because Linux is more efficient with hardware resources (disk, memory and networking were called out in the post you referenced). Putting Linux in a Windows VM does not eliminate the overhead of Windows that makes it slower for MongoDB. Instead you would have two overheads (Linux AND Windows).
You should also troubleshoot your actual performance problems (per your other post) rather than trying random things like OS changes in the hope that they will make your performance issues go away. The particular issue might go away but chances are you'll run into another one down the road, then what?
I have a problem with Docker running the nanoserver.
My environment: I Installed docker on a Win10 (developer build from microsoft) Virtual Machine (cause host is still Win7 with no default Docker support because of Hyper-V). I installed docker on the virgin image so no 3rd-party programs can cause the error. I also have already checked if Hyper-V is enabled.
But I think this Screenshot says everything:
Also Googled the problem, but everything i found wasn't in a Docker context.
FYI: I want to use the Docker container for running a network rendering slave which should only see one cpu core (for licensing reasons), maybe someone has another option for this.
so you are trying to run Docker on Windows 10 which is a VM on Windows 7? I suppose this is not possible. You are trying to run a virtualization platform inside a virtualized Host (your Windows 10 machine). This nested virtualization is not supported by Windows 7 afaik.
Nested virtualization is supported on Windows 10 Build 10565 and later (this must be your virtualization host).
Have you tried to create and run a Hyper-V VM inside that Windows 10 VM? this will also fail.
As much as I've looked, I can't find the hardware requirements for running minishift. Nothing mentioned in the Container Development Kit documentation, and the OpenShift documentation only mentions hardware requirements for production deployments.
I've been following RedHat's advice on running their Container Development Kit with nested KVM.
https://developers.redhat.com/blog/2018/02/13/red-hat-cdk-nested-kvm/
I may be pushing the limits. On a MacBook Air with 4x1.7GHz & 8GB RAM I’m running Fedora 27. Gave 6GB RAM & 2 cores to the RHEL Server and starting Minishift saw that it was giving 2 cores and 4GB RAM to VM. It took about 30 minutes to download and extract the 4 docker images. Things got progressively worse from there.
I’m trialing OpenShift Online. Would I run into a world of pain using Minishift directly on Fedora?
You would be better of running Minishift directly on Fedora 27 with KVM. Personally I use Minishift on Fedora 27. Using nested virtualisation will not give optimum performance as Minishift creates another VM to provision the OpenShift. So I will not recommend using nested virtualisation for Minishift. With the default settings i.e. 4GB RAM, 2 cores and 20GB disk you should be able to run few simple micro services on it. The resource requirement comes from the application you are trying to run on top of it. So if you are running an application which needs a lot of resources then you need to increase the resources to Minishift.
Once you know how much resources are fine for your application, you should save your configurations using "minishift config set" command. It will persist the settings across start/delete.
I have windows xp in my work and i programming on zend framework.
I need to install ubuntu for execute doctrine orm commands from linux console, I faile to do it on windows.
I thinking about 2 option of UBUNTU installation:
1.install ubuntu 10.04 on Virtual Box (Sun Virtual Machine).
2.create new primary partition and install ubuntu 10.04 directly.
Which options do you suggest to do?
Thanks
If it's something you won't be using much, just stick it in a Virtual Machine.
It's slower because it's running inside another system, so you'll have the windows stuff running as well as the ubuntu stuff, but if you're not going to be using it all the time, then not installing it as a stand alone means you don't mess with your MBR, and it's easier to get rid of when you don't need it anymore.
It's more easy, quickly, and safe if you use a VM, so you don't have to mess with the disk partition and so on.
I'm planning to build Linux web development server in virtual machine environment on Windows Virtual PC. As I don't have much experience with installing and configuring Linux web servers, I wanted to ask for some advice:
What Linux distribution do you recommend for such server? I want the virtual server to look like real hosting environment.
Do any pre-configured virtual machines for web development exist out there?
Maybe some instruction and tips on configuring?
My requirements for the server are quite standard: latest versions of Apache, MySQL, PHP, probably Python and Postgre.
Thank you.
UPDATE: OK I think I'll go with Ubuntu Server for this.
You can probably go with Ubuntu. It is easy for a beginner and there is plently of documentation on how to install a LAMP stack and later you can move on to other distros.
If you are looking for pre-configured machines, then you can have a look at VMWare Appliances
For the distribution I would recommend Ubuntu - you can add all the server software you want from their repositories.
For a virtual machine I'd recommend Ubuntu Server Edition JeOS, as that won't have any un-needed software on it.
Debian Lenny - rock solid stability & the most package support
I'm sure you can find some
Use prefork-worker apache, MySQL 5/PHP 5, Postgres 8.4.
There are lots of prebuilt vmware images that you can use. You might also consider looking at something like Amazon EC2 for which there are lots of off the shelf images.
I would also suggest Ubuntu server as a base OS.
Incidentally there are other virtualisation options in case Virtual PC doesn't recognise those prebuilt image formats (I think those formats are more standardised and interoperable these days, but not sure)...e.g. there is vmware, and there is virtualbox.org
Does it need to be in Linux straight away? You can run (Apache et al) XAMPP locally and get it up and running in 5 minutes.