|
|
[问题] aimstack 有时会很慢 |
|
|
\ No newline at end of file |
|
|
# [问题] aimstack 有时会很慢
|
|
|
|
|
|
|
|
|
ai-arts 调用 aim 的地方:
|
|
|
|
|
|
```golang
|
|
|
|
|
|
aimMetrics, err := GetAimMetrics(configs.GetAimServerInnerEndpoint(orgName), runHash, runInfo.CollectMetricNames())
|
|
|
if err != nil {
|
|
|
apiErr = exports.RaiseAPIErrorAuto(exports.AIARTS_UNKNOWN_ERROR, err.Error())
|
|
|
return
|
|
|
}
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
apt-get update ; apt-get install -y curl
|
|
|
|
|
|
|
|
|
调的接口是: "/api/runs/%s/metric/get-batch"
|
|
|
|
|
|
|
|
|
http://0.0.0.0:80/endpoints/aim/eyJwb3J0Ijo4MCwic2VydmljZSI6ImFpbXN0YWNrLmFwdWxpcy5zdmMuY2x1c3Rlci5sb2NhbCJ9
|
|
|
|
|
|
|
|
|
curl -X POST -d '[{"name":"test_1"}]' http://0.0.0.0:80/endpoints/aim/eyJwb3J0Ijo4MCwic2VydmljZSI6ImFpbXN0YWNrLmFwdWxpcy5zdmMuY2x1c3Rlci5sb2NhbCJ9/api/runs/df12e1de38b141fb9e804161/metric/get-batch
|
|
|
{"detail":[{"loc":["body"],"msg":"value is not a valid list","type":"type_error.list"}]} |