MongoDB 3.0 Using WiredTiger For MongoDB instances using the WiredTiger storage engine, performance on Windows is comparable to performance on Linux. MongoDB on Virtual Environments This section describes considerations when running MongoDB in some of the more common virtual environments. For all platforms, consider Scheduling for Virtual Devices (page 202). EC2 MongoDB is compatible with EC2. MongoDB Cloud Manager 67 provides integration with Amazon Web Services (AWS) and lets you deploy new EC2 instances directly from MongoDB Cloud Manager. See Configure AWS Integration 68 for more details. Azure For all MongoDB deployments using Azure, you must mount the volume that hosts the mongod instance’s dbPath with the Host Cache Preference READ/WRITE . This applies to all Azure deployments, using any guest operating system. If your volumes have inappropriate cache settings, MongoDB may eventually shut down with the following error: [DataFileSync] FlushViewOfFile for <data file> failed with error 1 ... [DataFileSync] Fatal Assertion 16387 These shut downs do not produce data loss when storage.journal.enabled is set to true . You can safely restart mongod at any time following this event. The performance characteristics of MongoDB may change with READ/WRITE caching enabled. The TCP keepalive on the Azure load balancer is 240 seconds by default, which can cause it to silently drop connec- tions if the TCP keepalive on your Azure systems is greater than this value. You should set tcp_keepalive_time to 120 to ameliorate this problem. cat /proc/sys/net/ipv4/tcp_keepalive_time The value is measured in seconds. sysctl net.ipv4.tcp_keepalive_time Or: sudo sysctl -w net.ipv4.tcp_keepalive_time=<value> Or: echo <value> | sudo tee /proc/sys/net/ipv4/tcp_keepalive_time These operations do not persist across system reboots. To persist the setting, add the following line to /etc/sysctl.conf : net.ipv4.tcp_keepalive_time = <value> • To change the tcp_keepalive_time value, you can use one of the following command: • To view the keep alive setting, you can use one of the following commands: On Linux systems : MongoDB Documentation, Release 3.0.4 $^{67}$https://cloud.mongodb.com/?jmp=docs $^{68}$https://docs.cloud.mongodb.com/tutorial/configure-aws-settings/ 205 5.1. Administration Concepts