Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

POST on the HTTP server is probably truncated #375

Open
igor-zacharov opened this issue Sep 23, 2020 · 1 comment
Open

POST on the HTTP server is probably truncated #375

igor-zacharov opened this issue Sep 23, 2020 · 1 comment

Comments

@igor-zacharov
Copy link

I'm retrieving the akumuli database entries with the "join" string via curl:

curl -v --data @$request http://localhost:8181/api/query
The $request is file containing this text:
{
"join": [ "gpu.util_M", "gpu.util_G","gpu.clock_G", "gpu.clock_M", "gpu.temp", "gpu.power", "gpu.SM_Active[%]", "gpu.SM_Occup[%]", "gpu.GR_Active[%]", "gpu.DRAM_Active[%]", "gpu.fp64[%]", "gpu.fp32[%]", "gpu.fp16[%]", "gpu.tensor[%]", "gpu.PCIE_RX[MB/s]", "gpu.PCIE_TX[MB/s]", "gpu.NVLINK_RX[MB/s]", "gpu.NVLINK_TX[MB/s]"],
"range": {
"from": "20200828T010000", "to": "20200922T140000"
},
"where" : { "ngpu": 4
},
"order-by": "time",
"limit": 10000000,
"output": { "format" : "csv", "timestamp" : "raw" }
}

This inquiry can be found in the akumuli.log associated to the curl retrieve event:
2020-09-23 15:11:22,347 [0x7ffe9fffc700] resp-protocol-parser [INFO] Starting protocol parser
2020-09-23 15:11:22,356 [0x7ffab17f9700] Main [ERROR] Query plan errornot found

and I get also the "-not found" error message in the output.

However, if I split the "join" string in two parts:

  1. "gpu.util_M", "gpu.util_G","gpu.clock_G", "gpu.clock_M", "gpu.temp", "gpu.power"
  2. all the rest
    I do get the output for each of these parts separately and no error is indicated.
    Remark - adding even a single additional entry to the (2) "join" string leads to an error.
    It buffles me since few months ago on a smaller database I could push the complete "join" inquiry without an error.

I guess the input buffer on the HTTP server is overflowing or some other error is occurring.
Please, advice.

@Lazin
Copy link
Member

Lazin commented Sep 25, 2020

I was pretty sure that join shouldn't handle more than 8 series at the same time but I might be wrong. Let me recreate this and get back to you. The -not found error message means that one of the series can't be found so join couldn't proceed correctly without one of the components.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants