Girish Ramakrishnan
fbae432b98
merge oauthproxy server into box server
2015-09-14 11:58:28 -07:00
Girish Ramakrishnan
9cad7773ff
refactor code to prepare for merge into box server
2015-09-14 11:28:49 -07:00
Girish Ramakrishnan
4adf122486
oauthproxy: refactor for readability
2015-09-14 11:22:33 -07:00
Girish Ramakrishnan
ea47c26d3f
apphealthmonitor is not a executable anymore
2015-09-14 11:09:58 -07:00
Girish Ramakrishnan
f57aae9545
Fix typo in assert
2015-09-14 11:09:41 -07:00
Girish Ramakrishnan
cdeb830706
Add apphealthmonitor.stop
2015-09-14 11:02:06 -07:00
Girish Ramakrishnan
0c9618f19a
Add ldap.stop
2015-09-14 11:01:35 -07:00
Girish Ramakrishnan
1cd9d07d8c
Merge apphealthtask into box server
...
We used to run this as a separate process but no amount of node/v8 tweaking
makes them run as standalone with 50M RSS.
Three solutions were considered for the memory issue:
1. Use systemd timer. apphealthtask needs to run quiet frequently (10 sec)
for the ui to get the app health update immediately after install.
2. Merge into box server (this commit)
3. Increase memory to 80M. This seems to make apphealthtask run as-is.
2015-09-14 10:52:11 -07:00
Girish Ramakrishnan
f028649582
Rename app.js to box.js
2015-09-14 10:43:47 -07:00
Johannes Zellner
d57236959a
choose aws subdomain backend for test purpose
v0.0.50
2015-09-13 22:02:04 +02:00
Johannes Zellner
ebe975f463
Also send data with the domain deletion
2015-09-13 22:02:04 +02:00
Johannes Zellner
a94267fc98
Use caas.js for subdomain business
2015-09-13 22:02:04 +02:00
Johannes Zellner
f186ea7cc3
Add initial caas.js
2015-09-13 22:02:04 +02:00
Girish Ramakrishnan
29e05b1caa
make janitor a systemd timer
...
one process lesser
2015-09-11 18:43:51 -07:00
Girish Ramakrishnan
6945a712df
limit node memory usage
...
node needs to be told how much space it can usage, otherwise it keeps
allocating and we cannot keep it under 50M. keeping old space to 30M,
lets the memory hover around 40M
there are many options to v8 but I haven't explored them all:
--expose_gc - allows scripts to call gc()
--max_old_space_size=30 --max_semi_space_size=2048 (old/new space)
node first allocates new objects in new space. if these objects are in use
around for some time, it moves them to old space. the idea here is that it
runs gc aggressively on new space since new objects die more than old ones.
the new space is split into two halves of equal size called semi spaces.
--gc_interval=100 --optimize_for_size --max_executable_size=5 --gc_global --stack_size=1024
http://erikcorry.blogspot.com/2012/11/memory-management-flags-in-v8.html
http://jayconrod.com/posts/55/a-tour-of-v8-garbage-collection
https://code.google.com/p/chromium/issues/detail?id=280984
http://stackoverflow.com/questions/30252905/nodejs-decrease-v8-garbage-collector-memory-usage
http://www.appfruits.com/2014/08/running-node-js-on-arduino-yun/
note: this is not part of shebang because linux shebang does not support args! so we cannot
pass node args as part of shebang.
2015-09-10 21:24:36 -07:00
Girish Ramakrishnan
03048d7d2f
set memorylimit for crashnotifier as well
2015-09-10 14:19:44 -07:00
Girish Ramakrishnan
28b768b146
Fix app autoupdater logic
...
The main issue was that app.portBindings is never null but { }
v0.0.49
2015-09-10 11:39:29 -07:00
Girish Ramakrishnan
c1e4dceb01
ssh is now on port 919
2015-09-10 10:08:40 -07:00
Johannes Zellner
954d14cd66
Warn the user when he performs an upgrade instead of update
...
Fixes #481
v0.0.48
2015-09-10 14:33:00 +02:00
Johannes Zellner
2f5e9e2e26
We do have global rest error handler which take care of re-login
2015-09-10 14:16:59 +02:00
Johannes Zellner
b3c058593f
Force reload page if version has changed
...
Fixes #480
2015-09-10 13:58:27 +02:00
Johannes Zellner
3e47e11992
Ensure the stylesheets are in correct order
...
Fixes #484
2015-09-10 13:32:33 +02:00
Girish Ramakrishnan
8c7dfdcef2
Wait upto 3 seconds for the app to quit
...
Otherwise systemd will kill us and we get crash emails.
Fixes #483
v0.0.47
2015-09-09 16:57:43 -07:00
Girish Ramakrishnan
c88591489d
make apps test work
2015-09-09 15:51:56 -07:00
Girish Ramakrishnan
719404b6cf
lint
2015-09-09 15:03:43 -07:00
Girish Ramakrishnan
f2c27489c8
test: make unregister subdomain test work
2015-09-09 14:36:09 -07:00
Girish Ramakrishnan
d6a0c93f2f
test: make register subdomain work
2015-09-09 14:32:05 -07:00
Girish Ramakrishnan
c64d5fd2e3
error is already Error
2015-09-09 14:26:53 -07:00
Girish Ramakrishnan
5b62aeb73a
make aws endpoint configurable for tests
2015-09-09 12:03:47 -07:00
Girish Ramakrishnan
7e83f2dd4a
intercept delete calls to test image
2015-09-09 11:32:09 -07:00
Girish Ramakrishnan
ed48f84355
give taskmanager couple of seconds to kill all processes
2015-09-09 10:39:38 -07:00
Girish Ramakrishnan
f3d15cd4a5
fix initialization of apps-test
2015-09-09 10:22:17 -07:00
Girish Ramakrishnan
8c270269db
remove dead code
2015-09-09 09:28:06 -07:00
Johannes Zellner
bea605310a
Use memoryLimit from manifest for graphs if specified
2015-09-09 17:11:54 +02:00
Johannes Zellner
8184894563
Remove upgrade view altogether
2015-09-09 16:47:13 +02:00
Johannes Zellner
47a87cc298
Remove upgrade link in the menu
2015-09-09 16:46:28 +02:00
Johannes Zellner
553a6347e6
Actually hand the backupKey over in an update
v0.0.46
2015-09-09 12:37:09 +02:00
Girish Ramakrishnan
a35ebd57f9
call iteratorDone when finished
2015-09-09 00:43:42 -07:00
Girish Ramakrishnan
97174d7af0
make cloudron-test pass
2015-09-08 22:13:50 -07:00
Girish Ramakrishnan
659268c04a
provide default backupPrefix for tests
2015-09-08 21:16:50 -07:00
Girish Ramakrishnan
67d06c5efa
better debug messages
2015-09-08 21:11:46 -07:00
Girish Ramakrishnan
6e6d8c0bc5
awscredentials is now POST
2015-09-08 21:02:21 -07:00
Girish Ramakrishnan
658af3edcf
disable failing subdomains test
...
This needs aws mock
2015-09-08 20:38:52 -07:00
Girish Ramakrishnan
9753d9dc7e
removeUser takes a userId and not username
2015-09-08 16:38:02 -07:00
Girish Ramakrishnan
4e331cfb35
retry registering and unregistering subdomain
v0.0.45
2015-09-08 12:51:25 -07:00
Girish Ramakrishnan
a1fa94707b
Remove ununsed error codes
2015-09-08 11:28:29 -07:00
Girish Ramakrishnan
88f1107ed6
Remove unused AWSError
2015-09-08 11:26:35 -07:00
Girish Ramakrishnan
e97b9fcc60
Do not start apptask for apps that are installed and running
v0.0.44
2015-09-08 10:24:39 -07:00
Girish Ramakrishnan
71fe643099
Check if we have reached concurrency limit before locking
2015-09-08 10:20:34 -07:00
Johannes Zellner
74874a459d
Remove ... for labels while showing the progress bar
2015-09-08 15:49:10 +02:00