zodern / meteor-up

Production Quality Meteor Deployment to Anywhere
http://meteor-up.com/
MIT License
1.27k stars 281 forks source link

Deploy zero downtime #1184

Open AlexeyGavrilovST opened 4 years ago

AlexeyGavrilovST commented 4 years ago

Hello. I have problem with zero downtime deploy. I setted up all required params according with this documentation http://meteor-up.com/docs.html but it's not working - application not available ~ 20 seconds during deploy.

Is there a working example of mup.js?

Thanks for help

My mup.js (I hide by ** private info) :

module.exports = {
  swarm: {
    enabled: true
  },
  servers: {
    one: {
      host: '******',
      username: 'ubuntu',
      pem: '~/.aws/serviceskey.pem',
    },
    two: {
      host: '******',
      username: 'ubuntu',
      pem: '~/.aws/serviceskey.pem'
    }
  },

  proxy: {
    domains: '*******',
    loadBalancing: true,
    servers: {
        one: {
            settings: 'settings.json'
        },
        two: {
            settings: 'settings2.json'
        }
    }
  },

  app: {
    name: 'PartsLedger',
    path: '../',

    servers: {
      one: {
        settings: 'settings.json'
      },
      two: {
        settings: 'settings2.json'
      },
    },

    buildOptions: {
      serverOnly: true,
    },

    env: {
        ROOT_URL: '******',
        MONGO_URL: '******',
    },

    docker: {
        image: 'abernix/meteord:node-8-base',
        prepareBundle: true,
    },

    enableUploadProgressBar: true,

    deployCheckWaitTime: 40
  },
};
zodern commented 4 years ago

@AlexeyGavrilovST could you please:

  1. Before deploying, run mup proxy logs --tail 20 --follow -t in a separate terminal, and let it run while you deploy.
  2. Deploy, and try to load the app while it is starting and verifying deployment
  3. Share the proxy logs. If you don't want to share them publicly, you can send them to me in a private message on the Meteor forums.
AlexeyGavrilovST commented 4 years ago

@zodern I sent message with logs to you on meteor forum. Thank you!

Liel208 commented 2 years ago

+1 Any update on this one?

Josh-of-TT commented 6 days ago

+1 Any update on this one?

Per @zodern I have stood up multiple servers for our meteor deploy - but Zero Downtime is not working.