title: What is the recommended way to scale spring boot service running in a kubernetes cluster?
body: <p>Spring boot has option to increase number of threads of underlying embedded server (<code>server.tomcat.max-threads</code>).</p>
  
  <p>When its deployed through kubernetes there is also an option to increase number of replicas (<code>kubectl scale</code>).</p>
  
  <p>If the kubernetes cluster is deployed on a cloud (say gcp) there is also an option to increase number of nodes (<code>gcloud container clusters resize</code> )</p>
  
  <p>To add to this there are auto scaling options as well (both at pod and node level).</p>
  
  <p>So what is the recommended way to scale a spring boot service?</p>