MeteorUp is not a typical load balancer, but a cluster with DDP messges handling the traffic between meteor instances.

Here is its architecture:

meteorup-architecture - Server Management Services

 

1) Install Mup

$  npm install -g mup

2) Install Meteor

$ curl https://install.meteor.com/ | sh

3) Meteor installation done and Next step is to create a project

$ meteor create  project name
$ cd project
$ meteor

4) Create Directory .deploy in your project directory

$ mkdir .deploy
$ cd .deploy
$ mup init
$ ls
mup.json    settings.json
$ vi  mup.json

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

module.exports = {
  servers: {
    one: {
      host: 'ec2-33-333-333-333.us-west-2.compute.amazonaws.com',
      //host: '11.11.11.111',
      username: 'ubuntu',
      pem: '/home/metorup/.ssh/id_rsa',
     // pem: '/Users/jay/.ssh/id_rsa',
      // password:
      // or leave blank for authenticate from ssh-agent
      opts: {
          port: 22
      },
      env: {
        CLUSTER_BALANCER_URL: 'http://one.samjesse.com'
      }
    },
    two: {
      host: '22.222.222.222',
      username: 'ubuntu',
       pem: '/home/metorup/.ssh/id_rsa',
      //pem: '/Users/jay/.ssh/id_rsa',
      // password:
      // or leave blank for authenticate from ssh-agent
      opts: {
          port: 22
      },
      env: {
        CLUSTER_BALANCER_URL: 'http://two.samjesse.com'
      }
    }
  },
 // Install MongoDB in the server, does not destroy local MongoDB on future setup
 setupMongo: false,
  // WARNING: Node.js is required! Only skip if you already have Node.js installed on server.
  setupNode: 1,
  meteor: {
    name: 'todos',
    path: '..',
    //port: 3000,
    servers: {
      one: {},
      two: {}
    },
    buildOptions: {
      debug: true,
      serverOnly: true,
    },
    env: {
      ROOT_URL: 'http://samjesse.com',
      MONGO_URL: 'mongodb://22.222.222.222:27017/test',
      //MONGO_URL: 'mongodb://localhost/meteor',
      CLUSTER_DISCOVERY_URL:'mongodb://22.222.222.222:27017/test',
      CLUSTER_SERVICE:'todos',
      CLUSTER_ENDPOINT_URL:'http://samjesse.com'
    },
    dockerImage: 'kadirahq/meteord:base',
    deployCheckWaitTime: 60
  },
  //mongo: {
    //oplog: true,
    //port: 27017,
    //servers: {
      //one: {},
    //},
  //},
};

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++

$ mup reconfig
$ mup setup

Output

output1 - Server Management Services

5- Once Mup setup is completed, run command mup deploy

$ mup deploy

Output

output2 - Amazon Managed Services

 

CloudEgg layer 7 load balancers are located in separate racks and powered by separate feeds thus eliminating all single points of failures. We at CloudEgg use advanced multi-server web hosting cPanel to improvise your web hosting task. For Load Balancing Clustering, you are contact CLoudEgg. CloudEgg provides 24 / 7 system administration services to monitor your server and keep them running up all the time securing your business.

Leave a Reply

Your email address will not be published. Required fields are marked *

Instant Quote


Can't read the image? click here to refresh.