Where can we scale worker nodes?

I read in the docs you can do it via the UI but I have yet to see this option; also is there a way to do it programmatically?

The use case for us is we have some DAG’s that need HEAPS of memory (27gb+) to provision that for long periods of time or to have to manually scale that would cost too much for us.