@@ -17,65 +17,65 @@ $ cortex deploy --env aws
1717
1818creating iris-classifier-onnx (RealtimeAPI)
1919creating iris-classifier-tf (RealtimeAPI)
20- created traffic-splitter (TrafficSplitter)
20+ created iris-classifier (TrafficSplitter)
2121```
2222
2323## ` cortex get `
2424
2525``` bash
2626$ cortex get
2727
28- env realtime api status up-to-date requested last update avg request 2XX
28+ env realtime api status up-to-date requested last update avg request 2XX
2929aws iris-classifier-onnx updating 0 1 27s - -
3030aws iris-classifier-tf updating 0 1 27s - -
3131
3232env traffic splitter apis last update
33- aws traffic-splitter iris-classifier-onnx:30 iris-classifier-tf:70 27s
33+ aws iris-classifier iris-classifier-onnx:30 iris-classifier-tf:70 27s
3434```
3535
36- ## ` cortex get traffic-splitter `
36+ ## ` cortex get iris-classifier `
3737
3838``` bash
39- $ cortex get traffic-splitter --env aws
39+ $ cortex get iris-classifier --env aws
4040
4141apis weights status requested last update avg request 2XX 5XX
4242iris-classifier-onnx 30 live 1 1m - - -
4343iris-classifier-tf 70 live 1 1m - - -
4444
4545last updated: 1m
46- endpoint: https://abcedefg.execute-api.us-west-2.amazonaws.com/traffic-splitter
47- curl: curl https://abcedefg.execute-api.us-west-2.amazonaws.com/traffic-splitter -X POST -H " Content-Type: application/json" -d @sample.json
46+ endpoint: https://abcedefg.execute-api.us-west-2.amazonaws.com/iris-classifier
47+ curl: curl https://abcedefg.execute-api.us-west-2.amazonaws.com/iris-classifier -X POST -H " Content-Type: application/json" -d @sample.json
4848...
4949```
5050
5151## Make multiple requests
5252
5353``` bash
54- $ curl https://abcedefg.execute-api.us-west-2.amazonaws.com/traffic-splitter -X POST -H " Content-Type: application/json" -d @sample.json
54+ $ curl https://abcedefg.execute-api.us-west-2.amazonaws.com/iris-classifier -X POST -H " Content-Type: application/json" -d @sample.json
5555setosa
5656
57- $ curl https://abcedefg.execute-api.us-west-2.amazonaws.com/traffic-splitter -X POST -H " Content-Type: application/json" -d @sample.json
57+ $ curl https://abcedefg.execute-api.us-west-2.amazonaws.com/iris-classifier -X POST -H " Content-Type: application/json" -d @sample.json
5858setosa
5959
60- $ curl https://abcedefg.execute-api.us-west-2.amazonaws.com/traffic-splitter -X POST -H " Content-Type: application/json" -d @sample.json
60+ $ curl https://abcedefg.execute-api.us-west-2.amazonaws.com/iris-classifier -X POST -H " Content-Type: application/json" -d @sample.json
6161setosa
6262
63- $ curl https://abcedefg.execute-api.us-west-2.amazonaws.com/traffic-splitter -X POST -H " Content-Type: application/json" -d @sample.json
63+ $ curl https://abcedefg.execute-api.us-west-2.amazonaws.com/iris-classifier -X POST -H " Content-Type: application/json" -d @sample.json
6464setosa
6565
66- $ curl https://abcedefg.execute-api.us-west-2.amazonaws.com/traffic-splitter -X POST -H " Content-Type: application/json" -d @sample.json
66+ $ curl https://abcedefg.execute-api.us-west-2.amazonaws.com/iris-classifier -X POST -H " Content-Type: application/json" -d @sample.json
6767setosa
6868
69- $ curl https://abcedefg.execute-api.us-west-2.amazonaws.com/traffic-splitter -X POST -H " Content-Type: application/json" -d @sample.json
69+ $ curl https://abcedefg.execute-api.us-west-2.amazonaws.com/iris-classifier -X POST -H " Content-Type: application/json" -d @sample.json
7070setosa
7171```
7272
73- ## ` cortex get traffic-splitter `
73+ ## ` cortex get iris-classifier `
7474
7575Notice the requests being routed to the different Realtime APIs based on their weights (the output below may not match yours):
7676
7777``` bash
78- $ cortex get traffic-splitter --env aws
78+ $ cortex get iris-classifier --env aws
7979
8080using aws environment
8181
@@ -85,8 +85,8 @@ iris-classifier-onnx 30 live 1 4m 6.00791 ms
8585iris-classifier-tf 70 live 1 4m 5.81867 ms 5 -
8686
8787last updated: 4m
88- endpoint: https://comtf6hs64.execute-api.us-west-2.amazonaws.com/traffic-splitter
89- curl: curl https://comtf6hs64.execute-api.us-west-2.amazonaws.com/traffic-splitter -X POST -H " Content-Type: application/json" -d @sample.json
88+ endpoint: https://comtf6hs64.execute-api.us-west-2.amazonaws.com/iris-classifier
89+ curl: curl https://comtf6hs64.execute-api.us-west-2.amazonaws.com/iris-classifier -X POST -H " Content-Type: application/json" -d @sample.json
9090...
9191```
9292
@@ -95,9 +95,9 @@ curl: curl https://comtf6hs64.execute-api.us-west-2.amazonaws.com/traffic-splitt
9595Use ` cortex delete <api_name> ` to delete the Traffic Splitter and the two Realtime APIs (note that the Traffic Splitter and each Realtime API must be deleted by separate ` cortex delete ` commands):
9696
9797``` bash
98- $ cortex delete traffic-splitter --env aws
98+ $ cortex delete iris-classifier --env aws
9999
100- deleting traffic-splitter
100+ deleting iris-classifier
101101
102102$ cortex delete iris-classifier-onnx --env aws
103103
0 commit comments