APIのsnapmirrorに対するRESTパッチは、APIのプライベートsnapmirrorよりも低速です
環境
- ONTAP 9 REST API
- PATCH / API / snapmirror /からSnapMirrorを休止または再開できます
問題
- SnapMirror関係
PATCH /api/snapmirror/relationships
はRESTを使用して休止しています。 X-Trace-Threshold: 0
API呼び出しに追加のヘッダーが追加され、ONTAP がAPI実行のトレースを提供できるようになりました。
curl -u <username> -ik -H 'X-Trace-Threshold: 0' -X PATCH "https://<cluster_mgmt>/api/snapmirror/relationships/abcdef12-3456-7890-abcd-ef1234567890?failover=false&force-failover=false&force=false&failback=false&return_timeout=120" -H "accept: application/json" -H "Content-Type: application/json" -d "{ \"state\": \"quiesced\"}"
-
TRACE RESULTS
出力TOTAL
Time(s)
28.007054
は、列の下の合計実行時間を秒単位で表したものです。この例では、秒単位です。
TOTAL 28.007054 4560520 3313496 1250047272 1245486752 7488813
quiesce
やなど、すべてのSnapMirror関係を繰り返して実行するとresume
、実行時間の合計が大幅に変動していることがわかります。
TOTAL 2.243367 108536 1555280 135777912 135669376 748900
TOTAL 6.317346 812448 1316560 380904776 380092328 2225330
TOTAL 5.647037 640168 1085064 337228984 336588816 1962052
TOTAL 20.066069 256184 2077816 1149995480 1149739296 6877598
TOTAL 13.994593 271024 1246936 786166392 785895368 4685152
TOTAL 15.047924 -214920 2056520 873587096 873802016 5227347
TOTAL 10.544924 -364760 2231864 609750584 610115344 3651247
TOTAL 0.949309 618784 1059000 65859976 65241192 337164
TOTAL 0.928465 607896 1057768 65932456 65324560 331695
- 最悪
return_timeout
の場合、REST応答がを超えたときにHTTP 502エラーでREST呼び出しが返されます。 PATCH
/api/cluster
location
同時に、他のAPI(たとえば、コメントフィールドを更新する)に対しては、次の処理が常に高速に実行されます。
curl -u <username> -ik -H 'X-Trace-Threshold: 0' -X PATCH "https://<cluster>/api/cluster?return_timeout=120" -H "accept: application/json" -H "Content-Type: application/json" -d "{ \"location\": \"just a test to compare against snapmirror PATCH\"}"
...
TOTAL 0.005913 64296 86616 213960 149664 1005
...
- また、CLI
PATCH
/private/cli/snapmirror
やに対するREST APIの提供も常に高速化されています。
::*> snapmirror resume {-status quiesced -destination-path *} -smftrace
...
----------------------------------------------------------------------------------
TOTAL 0.046835 -11936 972408 5757776 5769712 21116
...