2 Dec 2020 |
underfenex | * I'm trying to do a query, so I'm doing a POST(that's the way graphql works). This is the query
query {
me {
id
firstName
}
}
| 16:10:37 |
underfenex | 0..1 |> Enum.each(fn _ -> post("/api", [{"Authorization", "Bearer token"}], "query {me {id\n firstName\n }}") delay(900, 0.1) end)These should be pass in the params but, they are not showin in the server. I'm using this:
| 16:11:24 |
underfenex | * These should be pass in the params but, they are not showin in the server. I'm using this:
0..1 |> Enum.each(fn _ ->
post("/api", [{"Authorization", "Bearer token"}], "query {me {id\n firstName\n }}")
delay(900, 0.1)
end)
| 16:11:35 |
underfenex | * These should be pass in the params but, they are not showing in the server. I'm using this:
0..1 |> Enum.each(fn _ ->
post("/api", [{"Authorization", "Bearer token"}], "query {me {id\n firstName\n }}")
delay(900, 0.1)
end)
| 18:41:15 |
kt315_ | you are not see the body, or authorization header? | 22:42:07 |
underfenex | The authorization header works ok | 22:51:41 |
underfenex | The body is not working | 22:51:49 |
kt315 | what content type is this? | 22:52:03 |
underfenex | It's a graphql query | 22:52:13 |
kt315 | you'll need to include explicit "Content-Type" header I think | 22:52:46 |
underfenex | curl \
-X POST \
-H "Content-Type: application/json" \
--data '{ "query": "{ posts { title } }" }' \
https://1jzxrj179.lp.gql.zone/graphql
| 22:54:25 |
kt315 | ok, add {"Content-Type", "application/json"} to the header list | 22:55:12 |
underfenex | ok, will try | 22:55:21 |
3 Dec 2020 |
kt315 | this might be relevant https://stackoverflow.com/questions/43675933/in-graphql-can-i-send-variables-with-content-type-application-graphql | 18:27:26 |
5 Dec 2020 |
underfenex | kt315: thnx! it did work | 00:14:28 |
underfenex | congratulations for building this usefull tool! | 00:14:46 |
kt315 | I am glad it did. Thank you! | 00:15:03 |
underfenex | I've been testing my elixir application (phoenix) | 00:15:38 |
underfenex | on Azure, using a B1s (1 CPU and 1GB RAM), and I get around 500 req/s, with CPU getting around 85% | 00:16:16 |
underfenex | Database it's outside the VM | 00:16:28 |
underfenex | When I use a F2s (2 CPU and 4GB RAM, high performance VM optimized for compute), I get around 1400 req/s (just serving static content, or doing simple queries, no elixir procesing of data | 00:17:29 |
underfenex | These values are far from your metrics which area around 2700 req/s per CPU core | 00:17:49 |
underfenex | could I be doing something wrong? | 00:18:01 |
kt315 | if you have to reach to other system, like DB or file system, this will add the overhead, in my tests the dummy server was returning constant data blob | 00:20:12 |
underfenex | When I do the test, just serving static data (no queries, I get 500req/s, when I perform simple queries to DB, also 500req/s) | 00:21:17 |
underfenex | Seems CPU gets lots of overhead just serving static data | 00:21:33 |
kt315 | I'd need to look at the code to give more definitive answer, you can also look at dummy servers here for reference https://gitlab.com/stressgrid/dummies | 00:22:59 |
31 Dec 2020 |
| bxo joined the room. | 00:38:42 |
7 Jan 2021 |
underfenex | Hi @k | 00:58:25 |
underfenex | Download StressGrid.png | 00:59:27 |