Floobits / colab

bringing the cloud to your ide
4 stars 1 forks source link

Controller #83

Closed ggreer closed 9 years ago

ggreer commented 9 years ago

This mega-branch does a few things.

  1. Upgrade to node 0.12.
  2. Upgrade leveldown/up/DMP/etc. Couple of huge bug fixes here so we don't have to use our fork of leveldown anymore.
  3. Put colab controller functionality in normal colab. For now, master/slave relationships are set in config, but we can add election in the future.
  4. Reverse initial connection behavior. Slaves connect to master now, not the other way 'round.
  5. Send replication commands over our protocol instead of HTTP.
  6. Add broadcast events, for solicitation stuff.
  7. IPv6 support. (Only because my dev systems seem to use IPv6 all over the damn place.)
  8. Restructure agent into handler/protocol.
ggreer commented 9 years ago

colab upgrade notes

before: wget https://iojs.org/dist/v1.2.0/iojs-v1.2.0.tar.gz tar xzf iojs-v1.2.0.tar.gz cd iojs-v1.2.0/ ./configure make

change /service/colab/run to exec node /data/colab/bin/colab 2>&1 ditto for anything that runs node. no more --max-heap-size or anything like that.

bring everything down

remove legacy node js stuff: sudo add-apt-repository --remove ppa:chris-lea/node.js sudo apt-get purge nodejs

install iojs 1.2 on everything: cd iojs-v1.2.0/ sudo make install sudo npm update -g

update local_settings.js (add master's info) remove colab controller from mdb00 install colab on mdb00

upgrade colabalancers

(still need to test backup stuff)