Add api_worker num to attr
Merge pull request #251 from kstev/num_api_workers

Configure api_workers with a max of 8, unless the node has less than 8 cores, then use the number of cores