Commit Graph

26 Commits

Author SHA1 Message Date
AlanCoding
d41d9a957e stubs and docs for management cmd renames 2017-08-07 15:27:23 -04:00
AlanCoding
79e2b995d2 initial git mv for management command renaming 2017-08-07 15:23:26 -04:00
AlanCoding
2f8a7de6bd remove --hostnames option for registering nodes 2017-07-31 16:44:57 -04:00
AlanCoding
1112557c79 set capacity to 0 if instance has not checked in lately 2017-07-27 16:20:04 -04:00
Ryan Petrello
d8da1dddf5 wrap instance and queue registration in postgres advisory locks
see: #7040
2017-07-14 14:56:14 -04:00
AlanCoding
dd1a261bc3 setup playbook and heartbeat for isolated deployments
* Allow isolated_group_ use in setup playbook
* Tweaks to host/queue registration commands complementing setup
* Create isolated heartbeat task and check capacity
* Add content about isolated instances to acceptance docs
2017-06-19 12:13:36 -04:00
Aaron Tan
9e4655419e Fix flake8 E302 errors. 2016-11-15 20:59:39 -05:00
AlanCoding
8d89d68d5e flake8 fixes for Jenkins 2016-10-14 09:46:41 -04:00
Matthew Jones
20b5aa7424 Fix some issues with management commands for clustering 2016-10-07 09:58:47 -04:00
Matthew Jones
babe29ebfa Implement cluster health checks
* Add a local node queue to execute targeted jobs
* Add a setting for active cluster node id (per-node)
* Base the heartbeat time on the `modified` time on the Instance table
* Add periodic task that calls save() on the instance to update the
  heartbeat time if services are up
* Purge/update any ha/instance management commands
* Fix up CELERY_ROUTES settings data structure
2016-10-06 16:05:39 -04:00
Matthew Jones
3de4aae548 Fixing up HA induced flake8 issues 2016-09-15 13:51:17 -04:00
Matthew Jones
0c1e1fa2fb Refactor Tower HA Instance logic and models
* Gut the HA middleware
* Purge concept of primary and secondary.
* UUID is not the primary host identifier, now it's based mostly on the
  username.  Some work probably still left to do to make sure this is
  legit.  Also removed unique constraint from the uuid field.  This
  might become the cluster ident now... or it may just deprecate
* No more secondary -> primary redirection
* Initial revision of /api/v1/ping
* Revise and gut tower-manage register_instance
* Rename awx/main/socket.py to awx/main/socket_queue.py to prevent
  conflict with the "socket" module from python base
* Revist/gut the Instance manager... not sure if this manager is really
  needed anymore
2016-09-08 13:37:53 -04:00
Matthew Jones
80a6f22c0c Move HA license check logic to the promotion step and allow registering
HA instances.   Registration is allowed but promotion/demotion is not
allowed without the HA feature
2015-06-26 15:23:07 -04:00
John Mitchell
32d1c0e4db fixed copyright date 2015-06-11 16:10:23 -04:00
Matthew Jones
31d0342d41 More copyright headers for api side stuff 2015-05-29 12:10:40 -04:00
Matthew Jones
b3da3b34a3 Changing some legal headers for python source files 2015-05-29 12:10:39 -04:00
Luke Sneeringer
9cc68d4da7 License differentiation for HA. 2015-05-21 11:35:23 -04:00
Matthew Jones
6a18a50d99 Fixing flake8 errors, this should be almost all of them! 2015-02-11 16:42:55 -05:00
Luke Sneeringer
00a38fd75f Update projects when a new primary is set. 2015-01-30 11:21:05 -06:00
Chris Meyers
58617e41e0 unified tower-manage *_instance commands
Changes:
* split register_instance into register_instance and update_instance
* register_instance may only create an instance if an instance doesn't already exist and may not modify an existing instance. Before --hostname would modify the hostname for an already registered instance
* register_instance removed --timid parameter and always behave like timid is on
* remove_instance now accepts --hostname to match an instance to remove
* register_instance added better usage message
2015-01-20 15:13:12 -05:00
Chris Meyers
f2c9dcd173 added documentation to command: tower-manage register_instance --help 2015-01-16 11:46:33 -05:00
Luke Sneeringer
d6699353e5 Save hostnames, not IP addresses, for HA. 2014-12-02 10:34:25 -06:00
Luke Sneeringer
57194c9a89 Addition of IP address to instance records. 2014-10-20 08:04:16 -05:00
Luke Sneeringer
f77ae6f1bc Fixing a variable error. 2014-10-20 08:04:16 -05:00
Luke Sneeringer
4915ba291e Working instance registration. 2014-10-20 08:04:15 -05:00
Luke Sneeringer
3e2cf3acb3 Beginning work on instance registration, sanity checks. 2014-10-20 08:04:15 -05:00