- **status**: review --> fixed
- **Comment**:

commit ce0af7444b489620bc3f1a5ba5d876f563167b00
Author: Gary Lee <gary....@dektech.com.au>
Date:   Tue Mar 12 11:20:35 2019 +1100

    osaf: improve response time in etcd3.plugin [#3016]
    
    if the initial call to watch takeover request in etcd3.plugin
    is made when etcd has already been shutdown (for example,
    when etcd is running locally and the node is being shutdown),
    the plugin should return 0 with a fake takeover request to ensure
    rded shuts down promptly. Otherwise, it will keep calling
    watch, delaying node shutdown.



---

** [tickets:#3016] osaf: etcd3.plugin slows down cluster shutdown**

**Status:** fixed
**Milestone:** 5.19.03
**Created:** Thu Mar 07, 2019 06:29 AM UTC by Gary Lee
**Last Updated:** Tue Mar 12, 2019 12:39 AM UTC
**Owner:** Gary Lee


During a cluster shutdown, if the active SC is shutdown first, then the standby 
SC becomes active if etcd is still up. If etcd is then shutdown, the newly 
active SC may take a long time to shutdown when it's executing 'watch 
takeover_request' while etcd is down.

2019-02-27 13:23:55.395 SC-2 osafrded[175]: NO Peer down on node 0x2010f
2019-02-27 13:24:19.824 SC-2 osafrded[175]: NO RDE role set to ACTIVE
2019-02-27 13:24:19.824 SC-2 osafrded[175]: NO Running 
'/usr/local/lib/opensaf/opensaf_sc_active' with 0 argument(s)

<143>1 2019-02-27T13:24:25.296088+01:00 SC-2 osafrded 175 osafrded [meta 
sequenceId="628"] 821:osaf/consensus/key_value.cc:0 << Execute
<143>1 2019-02-27T13:24:25.308915+01:00 SC-2 osafrded 175 osafrded [meta 
sequenceId="629"] 822:osaf/consensus/key_value.cc:42 TR Executed 
'/usr/local/lib/opensaf/etcd.plugin watch "takeover_request"', returning 1
<143>1 2019-02-27T13:24:28.430054+01:00 SC-2 osafrded 175 osafrded [meta 
sequenceId="634"] 821:osaf/consensus/key_value.cc:0 << Execute
<143>1 2019-02-27T13:24:28.445755+01:00 SC-2 osafrded 175 osafrded [meta 
sequenceId="635"] 822:osaf/consensus/key_value.cc:42 TR Executed 
'/usr/local/lib/opensaf/etcd.plugin watch "takeover_request"', returning 1

....
<143>1 2019-02-27T13:26:36.97202+01:00 SC-2 osafrded 175 osafrded [meta 
sequenceId="937"] 821:osaf/consensus/key_value.cc:0 << Execute
<143>1 2019-02-27T13:26:36.996691+01:00 SC-2 osafrded 175 osafrded [meta 
sequenceId="938"] 822:osaf/consensus/key_value.cc:42 TR Executed 
'/usr/local/lib/opensaf/etcd.plugin watch "takeover_request"', returning 1



---

Sent from sourceforge.net because opensaf-tickets@lists.sourceforge.net is 
subscribed to https://sourceforge.net/p/opensaf/tickets/

To unsubscribe from further messages, a project admin can change settings at 
https://sourceforge.net/p/opensaf/admin/tickets/options.  Or, if this is a 
mailing list, you can unsubscribe from the mailing list.
_______________________________________________
Opensaf-tickets mailing list
Opensaf-tickets@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets

Reply via email to