woocommerce stack , Is it separate or on one server


woocommerce stack , Is it separate or on one server

vps 2c4G 50G NVMe x1 or vps 1c2G 50G NVMe x2

application : debian10+openlistspeed+mariadb+redis+Elasticsearch+GoAccess

detach database to another server :
vps1 debian10+openlitespeed+redis+GoAccess+woocommerce;
vps2 mariadb+Elasticsearch;

or

vps1 debian10+openlistspeed+GoAccess+woocommerce;
vps2 mariadb+Elasticsearch +redis;

Which one is better