nomad icon indicating copy to clipboard operation
nomad copied to clipboard

Restart all allocations button on main job window

Open valafon opened this issue 10 months ago • 1 comments

Proposal

Add a "Restart All Allocations" button to the main window of the job in the WEB UI. For an example, I'm attaching a screenshot of how I see it. restart

Use-cases

It would be great to have a restart button in the main Job menu. For people who only casually work with Nomad, it's an overhead to search for an allocation within the Job menu just to fall into it and press the restart allocation button there. Teams like tier1 and tier2 support, who mainly just reboot jobs, prefer to do this through stopping/starting a job since it's much more intuitive than figuring out where to find the restart button in the menu. In turn, this creates certain problems because stopping/starting can completely break a job, a prime example of this is the following issue - https://github.com/hashicorp/nomad/issues/18536 (the problem is still relevant). It would be great if the Nomad team could place the restart all allocations button for a job in the main menu, as I suggest in the attached picture. Or, allow the appearance of this button to be enabled through some server setting in the config.

Attempted Solutions

NIL

valafon avatar Apr 09 '24 12:04 valafon

Hi @valafon! Yeah so this feature would effectively reproduce what's in the nomad job restart command. What might make this interesting from a design standpoint is that command takes a lot of different options because restarting a whole job has consequences for availability.

I'll mark this for further discussion and roadmapping.

tgross avatar Apr 11 '24 18:04 tgross