meteorhacks / cluster

Clustering solution for Meteor with load balancing and service discovery
https://meteorhacks.com/cluster-a-different-kind-of-load-balancer-for-meteor.html
MIT License
632 stars 80 forks source link

One instance overloaded while another one is much less #49

Open haotangio opened 9 years ago

haotangio commented 9 years ago

I'm using 4 EC2 instances with Meteor-Up + Cluster for setup. This is my Meteor-up configuration:

"servers": [
    {
      "host": "server-1.myserver.com",
      "username": "ubuntu",
      "pem": "./ssh.pem",
      "env": {
        "CLUSTER_BALANCER_URL": "https://server-1.myserver.com",
        "CLUSTER_ENDPOINT_URL": "https://server-1.myserver.com"
      }
    },
    {
      "host": "server-2.myserver.com",
      "username": "ubuntu",
      "pem": "./ssh.pem",
      "env": {
        "CLUSTER_BALANCER_URL": "https://server-2.myserver.com",
        "CLUSTER_ENDPOINT_URL": "https://server-2.myserver.com"
      }
    },
    {
      "host": "server-3.myserver.com",
      "username": "ubuntu",
      "pem": "./ssh.pem",
      "env": {
        "CLUSTER_BALANCER_URL": "https://server-3.myserver.com",
        "CLUSTER_ENDPOINT_URL": "https://server-3.myserver.com"
      }
    },
    {
      "host": "server-4.myserver.com",
      "username": "ubuntu",
      "pem": "./ssh.pem",
      "env": {
        "CLUSTER_BALANCER_URL": "https://server-4.myserver.com",
        "CLUSTER_ENDPOINT_URL": "https://server-4.myserver.com"
      }
    }
]

But when I check the 4 instances, the instance-1 CPU usage is much more than instance-2 (34% compared to 5%), instance-3 & 4 consumes about 10%.

I've also checked the server log and see that log from instance-1 is much more than the other's.

Is there anything wrong with my configuration? Thank you so much for your help.

elie222 commented 9 years ago

Same problems here. But no answers...