jehartzog / galaxy-autoscale Goto Github PK
View Code? Open in Web Editor NEWA server-only package to auto-scale Meteor Galaxy containers
License: MIT License
A server-only package to auto-scale Meteor Galaxy containers
License: MIT License
Meteor version: 1.6.0-beta.31
System: linux 64 bits.
TL;DR: seems like request-progress
is missing in the NPM's depends.
=> Errors while adding packages:
While loading avariodev:[email protected]...:
error: Command failed: /home/fermuch/.meteor/packages/meteor-tool/.1.6.0-beta.31.nr39v5++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/bin/npm rebuild --update-binary
module.js:529
throw err;
^
Error: Cannot find module 'request-progress'
at Function.Module._resolveFilename (module.js:527:15)
at Function.Module._load (module.js:476:23)
at Module.require (module.js:568:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (/tmp/mt-1il0fdv.mkno/npm/node_modules1/.temp-1617jpq.25kxf/node_modules/phantomjs-prebuilt/install.js:9:23)
at Module._compile (module.js:624:30)
at Object.Module._extensions..js (module.js:635:10)
at Module.load (module.js:545:32)
at tryModuleLoad (module.js:508:12)
at Function.Module._load (module.js:500:3)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: `node install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/fermuch/.npm/_logs/2017-09-26T14_15_50_580Z-debug.log
module.js:529
throw err;
^
Error: Cannot find module 'request-progress'
at Function.Module._resolveFilename (module.js:527:15)
at Function.Module._load (module.js:476:23)
at Module.require (module.js:568:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (/tmp/mt-1il0fdv.mkno/npm/node_modules1/.temp-1617jpq.25kxf/node_modules/phantomjs-prebuilt/install.js:9:23)
at Module._compile (module.js:624:30)
at Object.Module._extensions..js (module.js:635:10)
at Module.load (module.js:545:32)
at tryModuleLoad (module.js:508:12)
at Function.Module._load (module.js:500:3)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: `node install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/fermuch/.npm/_logs/2017-09-26T14_15_50_580Z-debug.log
Hey thx for this package :)
I get this error when trying out autoscale:
2018-02-16 08:45:00+01:00Error
vy32b
2018-02-16 08:45:00+01:00Failed to launch chrome!
vy32b
2018-02-16 08:45:00+01:00/app/bundle/programs/server/npm/node_modules/meteor/avariodev_galaxy-autoscale/node_modules/puppeteer/.local-chromium/linux-515411/chrome-linux/chrome: error while loading shared libraries: libXcomposite.so.1: cannot open shared object file: No such file or directory
vy32b
2018-02-16 08:45:00+01:00
vy32b
2018-02-16 08:45:00+01:00
vy32b
2018-02-16 08:45:00+01:00TROUBLESHOOTING: https://github.com/GoogleChrome/puppeteer/blob/master/docs/troubleshooting.md
vy32b
2018-02-16 08:45:00+01:00
vy32b
2018-02-16 08:45:00+01:00Error: Failed to launch chrome!
vy32b
2018-02-16 08:45:00+01:00/app/bundle/programs/server/npm/node_modules/meteor/avariodev_galaxy-autoscale/node_modules/puppeteer/.local-chromium/linux-515411/chrome-linux/chrome: error while loading shared libraries: libXcomposite.so.1: cannot open shared object file: No such file or directory
vy32b
2018-02-16 08:45:00+01:00
vy32b
2018-02-16 08:45:00+01:00
vy32b
2018-02-16 08:45:00+01:00TROUBLESHOOTING: https://github.com/GoogleChrome/puppeteer/blob/master/docs/troubleshooting.md
vy32b
2018-02-16 08:45:00+01:00
vy32b
2018-02-16 08:45:00+01:00 at onClose (/app/bundle/programs/server/npm/node_modules/meteor/avariodev_galaxy-autoscale/node_modules/puppeteer/lib/Launcher.js:211:14)
vy32b
2018-02-16 08:45:00+01:00 at Interface.helper.addEventListener (/app/bundle/programs/server/npm/node_modules/meteor/avariodev_galaxy-autoscale/node_modules/puppeteer/lib/Launcher.js:200:50)
vy32b
2018-02-16 08:45:00+01:00 at emitNone (events.js:111:20)
vy32b
2018-02-16 08:45:00+01:00 at Interface.emit (events.js:208:7)
vy32b
2018-02-16 08:45:00+01:00 at Interface.close (readline.js:370:8)
vy32b
2018-02-16 08:45:00+01:00 at Socket.onend (readline.js:149:10)
vy32b
2018-02-16 08:45:00+01:00 at emitNone (events.js:111:20)
vy32b
2018-02-16 08:45:00+01:00 at Socket.emit (events.js:208:7)
vy32b
2018-02-16 08:45:00+01:00 at endReadableNT (_stream_readable.js:1055:12)
vy32b
2018-02-16 08:45:00+01:00 at _combinedTickCallback (internal/process/next_tick.js:138:11)
vy32b
2018-02-16 08:45:00+01:00 at process._tickCallback (internal/process/next_tick.js:180:9)
vy32b
2018-02-16 08:45:00+01:00 => awaited here:
vy32b
2018-02-16 08:45:00+01:00 at Function.Promise.await (/app/bundle/programs/server/npm/node_modules/meteor/promise/node_modules/meteor-promise/promise_server.js:56:12)
vy32b
2018-02-16 08:45:00+01:00 at Promise.asyncApply (packages/avariodev:galaxy-autoscale/lib/autoscale.js:16:15)
vy32b
2018-02-16 08:45:00+01:00 at /app/bundle/programs/server/npm/node_modules/meteor/promise/node_modules/meteor-promise/fiber_pool.js:43:40
vy32b
2018-02-16 08:45:00+01:00(node:7) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): ReferenceError: page is not defined
vy32b
2018-02-16 08:45:00+01:00(node:7) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
I installed this package and start it like this:
GalaxyAutoScale.config({
appUrl: Meteor.settings.galaxy.appUrl,
username: Meteor.settings.galaxy.username,
password: Meteor.settings.galaxy.password,
scalingRules: {
containersMin: 1,
containersMax: 6,
connectionsPerContainerMax: 120,
connectionsPerContainerMin: 80
},
alertRules: {
cpuPercentageMax: 80
}
});
GalaxyAutoScale.addSyncedCronJob();
GalaxyAutoScale.startSyncedCron(); // The README.md says GalaxyAutoScale.start(), but I think this is correct
I am using the default docker galaxy image.
Using the default Npm.depends
causes errors when adding the package #1 due to modules being not found. The missing modules seem to shift, and shifting versions around while testing seems to clear the issue.
Creating this for tracking after switching over to requiring the npm dependencies to be manually installed.
DEPLOY_HOSTNAME (eu-west-1.galaxy.meteor.com) is not configurable, and this is not intended for an organization (--owner)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.