Updating software on cluster nodes without dropping traffic on those nodes

21 views
Skip to first unread message

Rahul Kumar

unread,
Feb 7, 2020, 2:08:35 AM2/7/20
to ansible...@googlegroups.com
Hi Ansible Gurus,
I need some suggestions for performing online opeations on a cluster.

Problem :  I have a 5 nodes cluster set up by Ansible . All nodes of cluster carrying some network traffic.
Now I want to update application software on each node , so that no traffic is dropped.
If I update all 5 nodes software , exiting on going traffic on those nodes will be dropped.

So i thought of updating node wise node using --limit option in ansible CLI. So that during update operation, some nodes active enough (means no update going on those at that time) to handle upcoming traffic.
This apporach is updating nodes in cluster sequenctially node wise node so that traffic is not dropped.


is there any better way of doing so with Ansible ?


Regards
Rahul

Chiku

unread,
Feb 7, 2020, 3:28:15 AM2/7/20
to ansible...@googlegroups.com

Rahul Kumar

unread,
Feb 10, 2020, 12:09:07 AM2/10/20
to ansible...@googlegroups.com
Thanks Chiku , How it is different from --limit option (which limits no. of nodes and decides on which play should be invoked)  invoked from ansible command line ?
And which is the best practice recommended ?

Regards
Rahul

To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/b1594a70-c2a7-4a33-25db-3c8df90d3aea%40tsgri13.fr.

Andre Gronwald

unread,
Feb 11, 2020, 1:12:56 AM2/11/20
to Ansible Project
As far as I understand "limits" actually executes the tasks only to that ansible host(s), whereas "serial" defines the concurrent hosts the tasks runs against. => serial doesn't limit the affected hosts overall, only the timely manner.

Rahul Kumar

unread,
Feb 11, 2020, 1:19:23 AM2/11/20
to ansible...@googlegroups.com
It means, serial will guarantee that task will be executed on all hosts at the end ( may be some host first , then other etc ) provided no host fails .

--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.

Andre Gronwald

unread,
Feb 11, 2020, 1:48:56 AM2/11/20
to Ansible Project
exactly.


Am Dienstag, 11. Februar 2020 07:19:23 UTC+1 schrieb Rahul Kumar:
It means, serial will guarantee that task will be executed on all hosts at the end ( may be some host first , then other etc ) provided no host fails .
On Tue, 11 Feb 2020 at 11:43 AM, Andre Gronwald <andregr...@gmail.com> wrote:
As far as I understand "limits" actually executes the tasks only to that ansible host(s), whereas "serial" defines the concurrent hosts the tasks runs against. => serial doesn't limit the affected hosts overall, only the timely manner.

Am Montag, 10. Februar 2020 06:09:07 UTC+1 schrieb Rahul Kumar:
Thanks Chiku , How it is different from --limit option (which limits no. of nodes and decides on which play should be invoked)  invoked from ansible command line ?
And which is the best practice recommended ?

Regards
Rahul

--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages