Run frappe on two different machine

1.⁠ ⁠Frappe worker runs on a different machine(s)
2.⁠ ⁠⁠Frappe server (gunicorn) runs on a different machine

How to achieve this, can anyone help me