We are planning to migrate an application from AWS cloud to on-prem. For our application, we were using AWS ALB. For on-prem deployment, we are planning to use an Nginx load balancer. But I'm not sure about what configuration is required for hosting the load balancer because in the cloud (AWS) we are not concerning about the machine specs.
What are the criteria for selecting a machine as a load balancer? I mean the RAM, CPU, etc. I'm afraid that if I choose a 4GB machine will that be enough for the load balancer? How can I choose the machine?