Hi @Etny,
In an ideal and production-ready environment, you’d probably have one machine for each type of the service, where each service is running in several instances/nodes.
Recommended minimal setup would be two graylog server nodes, three mongodb nodes and three data nodes.
For experiments and proof-of-concept setups, your suggestion with two machines, one for graylog server + mongodb and one for data node will work, but you have to be aware that there is no failover, no redundancy and each upgrade or problem will cause downtime.