Posts

MongoDB Basic Configuration Setup

MongoDB Basic Configuration setup  Welcome to MongoDB DBA blog😊. Today we are going to know how to create a mongod.conf file and how to start the mongod server. Default Config File Location Operating System Configuration File Location Linux /etc/mongod.conf Windows <install   directory>/bin/mongod.cfg Mac /usr/local/etc/mongod.conf   File Format MongoDB configuration file use the  YAML  format, introduced in MongoDB 2.6 version. The  2.4 configuration file format  remains for backward compatibility. YAML does not support tab characters for indentation: use spaces instead. Run server To configure  mongod  or  mongos  using a config file. Specify the config file with the --config or -f option. for example, mongod --config /etc/mongod.conf Command Line Configuration We can start mongod server with out config file from a co...
Image
 SHARDING Sharding  is a method for distributing data across multiple machines. MongoDB uses sharding to support deployments with very large data sets and high throughput operations. Database systems with large data sets or high throughput applications can challenge the capacity of a single server. For example, high query rates can exhaust the CPU capacity of the server. Working set sizes larger than the system’s RAM to stress the I/O capacity of disk drives. There are two methods for addressing system growth:  Vertical scaling. Horizontal scaling. Vertical Scaling  involves increasing the capacity of a single server, such as using a more powerful CPU, adding more RAM, or increasing the amount of storage space. Limitations in available technology may restrict a single machine from being sufficiently powerful for a given workload. Horizontal Scaling  involves dividing the system dataset and load over multiple servers, adding additional ...