KMP_AFFINITY Benchmarking Example
This notebook illustrates testing your model with KMP_AFFINITY settings.
Prequisites
An authenticated K8S cluster with istio and Seldon Core installed
You can use the ansible seldon-core playbook at https://github.com/SeldonIO/ansible-k8s-collection
vegeta and ghz benchmarking tools
Port forward to istio
kubectl port-forward $(kubectl get pods -l istio=ingressgateway -n istio-system -o jsonpath='{.items[0].metadata.name}') -n istio-system 8003:8080Tested on GKE with 3 nodes of 32vCPU e2-highcpu-32
from IPython.core.magic import register_line_cell_magic
@register_line_cell_magic
def writetemplate(line, cell):
with open(line, "w") as f:
f.write(cell.format(**globals()))VERSION = !cat ../../../version.txt
VERSION = VERSION[0]
VERSIONCIFAR10 Model with KMP Settings
We run a custom python model built using Intel's Tensorflow library.
Direct Tests
Inital warm-up tests via port-forward.
Run Vegeta Benchmark
Notes
Always ensure your resource.cpu.linits >= GUNICORN_WORKERS otherwise there may be CPU throttling
Last updated
Was this helpful?