Steps for building a MongoDB Cluster
I have built a mongodb cluster many times, and there will be more or less problems each time. I will write this article for future reference. This is to build a cluster based on mongodb3.0. The steps are as follows:
1. Set the Operating System EnvironmentEcho "never"> "/sys/kernel/mm/transparent_hugepage/enabled"Echo "never"> "/sys/kernel/mm/transparent_hugepage/defrag"Ulimit-n 64000
2. modify the configuration fil
startup is a program to be run at startup. If you need to temporarily stop running some programs, you can cancel the [X] symbol in [□, if you want to resume the boot, you can add the [X] symbol to this program in [□.
Disable unnecessary services:Open the service window in [start] [run] \ type [services. msc]Check the window on the right to select [forbidden] from the [Startup Type] And then select [disabled] from the [service status 〕
Use the CPU L2 Cache to speed up the overall performance:
In
. open HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionApplets, create a sub-key Defrag, create a new sub-key Sett ings under it, create a new string value in the right window, and name it "DisableScreenSaver ", set the value to "YES.
Add the shutdown function in the logon dialog box.
Method: 1. Open the HKEY_LOCAL_MACHINESoftwareMicrosoftWindowsNTCurrentVersionWinlogon subkey, double-click "ShutdownWithou tLogon" in the right window, and set t
environment.For example, after a RAC node restarts, the following log information may be found in Ocssd.log:2013-05-01 14:30:45.255: [ cssd][224204544]clssscmonitorthreads Clssnmvkillblockthread not scheduled for 7500 msecs2013-05-01 14:30:46.945: [ The MONGODB environment also recommends turning off the transparent large page feature.Check that the transparent large page feature is turned on:Rhel System:# Cat/sys/kernel/mm/redhat_transparent_hugepage/enabled[always] NeverOther systems: (
time. Bed linen and mattresses must be bought in good quality. This is a very valuable investment, because 30% of the time in a person's life needs to be spent in bed.You think you're brushing a circle of friends, but you're actually brushing your brain at the same time, and the sense of existence may not be brushed, and time wasted is really true.The computer hard disk is fragmented and can be defrag, the brain is fragmented and there is no simple p
software. As we have previously installed the corresponding RPM packages on each node, this will be done soon. If the previous nodes were not manually installed, this step will download the RPM package online, very slowly, and if the error is interrupted. It is strongly recommended that you do not use online downloads.About 10 minutes to complete the installation (there are only 7 nodes, when the first installation I installed only 7 nodes, the remaining two nodes were added to the cluster late
synchronization. Can do time server (NTP server)8) Turn off SELinux (takes effect after reboot).
A) vi/etc/rc.local
b) Set selinux=disabled
9) Maximize the use of physical memory.
A) vi/etc/sysctl.conf add
b) vm.swappiness = 0
c) sysctl-p change takes effect
10) Close the "Transparent large page", which can cause significant performance issues.
A) perform echo never >/sys/kernel/mm/redhat_transparent_hugepage/
cluster technique.
iOptimization of nodes
Read a very short file, also need to first two times disk access
Read i node
Read access block
The access between the two increases the seek time.
Improved
The first kind. Storage node in the middle of the disk i .
The second kind. The disk is divided into multiple 柱面组 , each cylinder group has its own i节点 .
providers. Our main goals were to:
Defrag the ecosystem and make instrumentation portable regardless of which tracing backend users depend on.
Enable the library ecosystem to utilize the current trace context if any without have to depend on a specific tracing BA Ckend.
It soon became clear that there is the critical barriers to achieve a common API:
Tracing is a multi language problem. Our design decisions needs to being reflected
accurate GC, such as generational (generational) GC, copy GC, and markup and thin processing (mark-and-compact processing), have significant performance improvements. Generational (generational) GC improves GC efficiency by separating the "young generational" objects (often collected) and the old generational (older generational) objects (objects that are relatively long-lived).V8 uses a generational (generational) GC to replicate the GC with light (LIGHT-LOAD) on new generational (generational
1, DOS Common command detaileddir column file name deltree Delete the directory tree CLS clear Screen CD changes the current directory. Copy copy file diskcopy copying disk del delete file format formatted disk. Edit Text Editing mem view memory status MD Establish subdirectories move files, change directory names. More split screen display type Displays the file contents rd Delete directory
1. Accelerated disk fragmentationThe disk fragment tool in Windows 7 provides more controllable options than Windows Vista, and its command line version also provides some interesting new features. The following describes the parameters:/R parallel processing of multiple drives/H allows the disk fragment tool to use more system resources to accelerate the operation/U provides regular progress reports. You can see detailed process of fragment.Command usage example:Defrag/c/h/u/rPurpose: quickly o
time is getting longer. Therefore, it is best to do a complete maintenance of the computer every time. Click "Start" → "programs" → "Accessories" → "System Tools" → "Maintenance Wizard" and then click the "OK" button to perform a full maintenance of your computer, which will keep your computer in top condition. For a hard disk, it is best to do a "defrag" every 2 weeks, which will significantly speed up the program startup, click on "System Tools" →
theblocks of data. the online defrag tool will be able to migrate each oneof those files to an extent format (using an IOCTL thatTells thefilesystem to rewrite the file with the extent format; you can use itsafely while you're using the filesystem normally)3.3. mount an existing ext3 filesystem with ext4 without changing the format
You can mount an existing ext3 filesystem withext4 but without using features that change the disk format. this meansyou
/transparent_hugepage/enabledfiif test-f/sys/kernel/mm/transparent_hugepage /defrag; Then e) redis.conf ConfigurationRefer to the following redis.conf configuration items: Redis Configuration Specific explanationhttp://blog.csdn.net/ithomer/article/details/92328912 redis-pyRedis-py This is the most mature Python client development package for Redis right now.Redis Home Page:Https://github.com/andymccurdy/redis-pyA) Download the source code$ git clon
Windows is typically installed in VirtualBox and then used in a seamless mode for certain software.The VirtualBox virtual hard disk will be larger, and the VirtualBox does not have its own cleanup tool, compared to VMware, VMware comes with a defrag tool.Here are the specific cleanup methods:1. If the virtual machine is using a system that is windows:① into the virtual machine, download sdelete,:http://technet.microsoft.com/en-us/sysinternals/bb897443
_usersoftwaremicrosoftwindowscurrentversionpoliciesexplorer subkey and create a double byte value in the right window, named " Nofavoritesment ", the value is 1.
V. Change the blink rate of the cursor
Applicable: Windows 98/ME/NT/2000/XP
Method: Open hkey_current _usercontrol paneldesktop subkey, find "Cursoblinkrate" in the right window, double-click "Currsorblinkrate", the number entered is the speed at which the cursor blinks, The default number for the system is generally 200~400. If the
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.