set ES_MIN_MEM and ES_MAX_MEM to 50% of physical; set bootstrap.mlockall = true