Skip to content

Commit bf86af0

Browse files
authored
Rename traffic-splitter to iris-classifier in example (#1284)
1 parent 5825079 commit bf86af0

File tree

2 files changed

+20
-20
lines changed

2 files changed

+20
-20
lines changed

examples/traffic-splitter/README.md

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -17,65 +17,65 @@ $ cortex deploy --env aws
1717

1818
creating iris-classifier-onnx (RealtimeAPI)
1919
creating 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
2929
aws iris-classifier-onnx updating 0 1 27s - -
3030
aws iris-classifier-tf updating 0 1 27s - -
3131

3232
env 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

4141
apis weights status requested last update avg request 2XX 5XX
4242
iris-classifier-onnx 30 live 1 1m - - -
4343
iris-classifier-tf 70 live 1 1m - - -
4444

4545
last 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
5555
setosa
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
5858
setosa
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
6161
setosa
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
6464
setosa
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
6767
setosa
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
7070
setosa
7171
```
7272

73-
## `cortex get traffic-splitter`
73+
## `cortex get iris-classifier`
7474

7575
Notice 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

8080
using aws environment
8181

@@ -85,8 +85,8 @@ iris-classifier-onnx 30 live 1 4m 6.00791 ms
8585
iris-classifier-tf 70 live 1 4m 5.81867 ms 5 -
8686

8787
last 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
9595
Use `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

examples/traffic-splitter/cortex.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
monitoring:
1919
model_type: classification
2020

21-
- name: traffic-splitter
21+
- name: iris-classifier
2222
kind: TrafficSplitter
2323
apis:
2424
- name: iris-classifier-onnx

0 commit comments

Comments
 (0)