wordpress with 1.5 million posts

1 GB on virtual private server (VPS) should be enough, if you don’t have a high traffic.

WP Cache could cause problems when number of posts is more than 30,000 due to limitations on file descriptors.

Main rules of tuning nginx, php and MySQL are the same as for high traffic site. You can read relevant article in my blog.