How many CPUs should be allocated to an Elasticsearch node that doesn't store data?

Because that depends on a number of variables.

  1. It'll work fine with 2-4
  2. If you have master only nodes, don't use them for anything else. Use your coordinating nodes instead.