"Server-template" Can automatically scale the number of servers?

Hi, instead of use “server-template app -number-…”

I can make it automatically scale follow the instance server number?

no, you can’t.
All memory is pre-allocated at configuration parsing time. If you want to expand the number of servers in a backend, you must reload haproxy or you can simply over-provision wit server-template.