Wednesday, 2016-02-24

*** shu-mutou-AFK is now known as shu-mutou00:00
*** Qiming has quit IRC00:04
*** sridhar_ram has quit IRC00:38
*** Qiming has joined #senlin01:09
*** sridhar_ram has joined #senlin01:35
*** Yanyanhu has joined #senlin01:50
*** sridhar_ram has quit IRC01:51
*** Liuqing has joined #senlin02:02
openstackgerritQiming Teng proposed openstack/senlin: Add some backlog of release notes  https://review.openstack.org/28390902:30
*** sridhar_ram has joined #senlin02:59
openstackgerritQiming Teng proposed openstack/senlin: Revised TODO list  https://review.openstack.org/28391503:08
openstackgerritQiming Teng proposed openstack/senlin: Documentation for deletion policy  https://review.openstack.org/28355803:22
*** zzxwill has joined #senlin03:25
zzxwillHello. Which Operating System is for the official install.sh and requirements.txt? CentOS/Redhat, Ubuntu?03:27
Qimingzzxwill, please consider install senlin using devstack way03:28
Qimingupstream packagers will help create RPM packages and DEB packages03:28
Qimingcheck doc here: http://docs.openstack.org/developer/senlin/install.html03:29
*** sridhar_ram has quit IRC03:33
*** zzxwill has quit IRC03:48
*** Liuqing has quit IRC04:37
*** Liuqing has joined #senlin04:38
*** zzxwill has joined #senlin04:44
zzxwill@Qiming, I will try. Thanks. I asked the question as I found a tiny issue when installing packages from requirements.txt https://bugs.launchpad.net/senlin/+bug/1549082.04:52
openstackLaunchpad bug 1549082 in senlin "fatal error: Python.h: No such file or directory when installing applications from requirements" [Undecided,New] - Assigned to zzxwill (zzxwill)04:52
zzxwillFor CentOS 7, python-dev needs to be installed before that.04:52
Qimingthanks, zzxwill, for letting us know05:19
*** openstack has joined #senlin13:23
lixinhuimaybe still some principle about period task like the questions I asked at the beginning13:24
lixinhuiSince registry is a table13:25
lixinhuiI do not think we need to search the table from different places13:26
lixinhuiso when you agree to healthManager, I think we can search there13:26
lixinhuibut hp behave as a filter13:26
lixinhuinow seems you mentioned a method, just let hp to do the search then checl/recover13:27
lixinhuiwhere to synergy the health policy and healthManager13:27
lixinhuibesides the conf of periodical interval13:28
lixinhui?13:28
Qimingwhat if a service engine dies?13:29
lixinhuiI can see the good design on parallel check/recover but did not get the key13:29
Qimingyou will need logic to reconstruct the registry?13:29
Qimingwe will allow for more than one engine service instances to run in parallel13:30
Qimingif each health manager instance maintain their own 'registry' in memory, how can we ensure a cluster is not checked by more than one health manager instance?13:31
lixinhuibut different policy object search the same table is the bottelneck13:32
Qimingit is just a DB SQL13:32
Qimingby parallelization, we are not adding new SQL queries13:32
Qiminga health manager can keep a 'cache' of the clusters registered to it13:33
lixinhuiyou mean each policy will ask maitain a memory list13:33
Qimingjust like what do have done in cluster.rt['nodes']13:33
lixinhuiinstead of seach each period13:33
lixinhuioh13:34
lixinhuiI mean the registry list13:34
lixinhuinot the content of each cluster13:34
Qimingsigh, I'm talking about a metaphore13:34
Qimingwe can do healthmanager.rt['clusters'] for caching purpose, right?13:35
lixinhuiwhy?13:35
Qimingto save DB queries13:35
lixinhuisince health manager will not do the cluster traverse any more13:35
Qiminghealth manager do cluster level iteration13:36
Qimingthen create thread to run health policy's check/recover method13:36
Qiminga health policy's check/recover method is passed in with a cluster_id, then it does what the policy has defined to do13:37
Qiminga health policy's attach method does two things: 1. create a record into DB table, recording that this cluster's health is being managed by a given health manager; 2. add the cluster ID to the health manager's rt dictionary (cache)13:38
Qimingwhen health manager restarts, it reconstructs the rt dictionary from the DB table13:39
Qimingif we choose to make things a little bit simpler, we can ignore the caching part13:39
lixinhuiseems got it13:42
lixinhuiI will try to write some test firstly, then come to you for suggestions/confirmation13:43
Qimingwith a diagram, you will see the whole picture13:43
Qimingthe health_manager should have its own thread pool13:43
Qimingjust like the scheduler13:43
lixinhuienen13:44
lixinhuino others :) I am waiting...13:47
lixinhuiI am waiting for you to draw all the diagram13:48
lixinhuino other parts?13:48
lixinhuiin the diagram13:48
Qiming.......13:50
Qimingignore the diagram part please13:51
*** zzxwill has joined #senlin13:51
lixinhuiokay ...13:52
Qimingcode is the best architecture, sometimes13:53
lixinhuiso we can remove the tag of periodical_task from health_check13:55
Qimingyes I think so13:56
lixinhuisince it running is trigged by healthmanager13:56
lixinhuiok13:56
Qimingyes, but I need to revisit the periodic_tasks code13:56
Qimingmake sure I'm understanding them correctly13:56
lixinhuiok13:57
Qimingseems the default interval of periodic_tasks decorated methods is 60 seconds14:00
lixinhuien14:00
lixinhuibut according to my initial testing, the tagged health_check will not run14:00
Qimingit is not registered14:01
lixinhuihow to registry?14:01
lixinhuicould you help to send me the link or config related?14:02
Qimingthat decorator only means that method is kind of a periodic task14:02
lixinhuiseems so14:02
lixinhuibut no manager to call it up14:02
Qimingyes14:04
Qimingthe 'periodic_tasks() method in Health_Manager class is triggered via a timer14:08
lixinhuiyes14:11
lixinhuiit runs well14:11
openstackgerritDi XiaoLi proposed openstack/python-senlinclient: Add OSC plugin for openstack cluster show  https://review.openstack.org/28415714:29
openstackgerritDi XiaoLi proposed openstack/python-senlinclient: Add OpenstackClient plugin for cluster policy create  https://review.openstack.org/28281814:49
openstackgerritDi XiaoLi proposed openstack/python-senlinclient: Add OpenstackClient plugin for cluster policy update  https://review.openstack.org/28281914:50
*** lixinhui has quit IRC14:50
openstackgerritDi XiaoLi proposed openstack/python-senlinclient: Add OpenstackClient plugin for cluster policy delete  https://review.openstack.org/28282014:51
openstackgerritDi XiaoLi proposed openstack/python-senlinclient: OSC plugin for openstack cluster policy type list  https://review.openstack.org/28286514:53
openstackgerritDi XiaoLi proposed openstack/python-senlinclient: Add OSC plugin for cluster policy type show  https://review.openstack.org/28286614:53
Qimingoh, my14:54
openstackgerritMerged openstack/python-senlinclient: Add OpenstackClient plugin for cluster policy show  https://review.openstack.org/28281714:55
openstackgerritDi XiaoLi proposed openstack/python-senlinclient: Add OSC plugin for openstack cluster show  https://review.openstack.org/28415715:03
openstackgerritDi XiaoLi proposed openstack/python-senlinclient: Add OSC plugin for openstack cluster create  https://review.openstack.org/28418415:16
*** zzxwill has quit IRC15:42
*** zzxwill has joined #senlin15:44
*** zzxwill has quit IRC15:49
*** zzxwill has joined #senlin15:51
*** zzxwill has quit IRC15:55
*** Qiming has quit IRC16:00
openstackgerritDi XiaoLi proposed openstack/python-senlinclient: Add OSC plugin for openstack cluster update  https://review.openstack.org/28422116:05
*** sridhar_ram has joined #senlin16:49
*** zzxwill has joined #senlin16:52
*** zzxwill has quit IRC16:56
openstackgerritAyush Garg proposed openstack/senlin: Remove extra parameters from actions document  https://review.openstack.org/28432618:08
*** zzxwill has joined #senlin18:52
*** zzxwill has quit IRC18:57
*** zzxwill has joined #senlin20:53
*** zzxwill has quit IRC20:59
*** sridhar_ram1 has joined #senlin21:32
*** sridhar_ram has quit IRC21:34
*** sridhar_ram1 has quit IRC22:36
*** sridhar_ram has joined #senlin22:38
*** zzxwill has joined #senlin22:55
*** zzxwill has quit IRC23:00
*** Qiming has joined #senlin23:15
*** sridhar_ram has quit IRC23:20
openstackgerritQiming Teng proposed openstack/senlin: Refactor health manager for future work  https://review.openstack.org/28419323:31

Generated by irclog2html.py 2.14.0 by Marius Gedminas - find it at mg.pov.lt!