Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gsql-proxy endpoint causing additional delay in Query response #1039

Staking7pc started this conversation in Frontier TestNet - General
Discussion options

As part of querying indexers all requests are routed to https://gql-proxy.subquery.network and then redirected to the actual indexers query node.
For example query to our indexer Brightlystake is routed using the address https://gql-proxy.subquery.network/0xD3bA0e2067e2399Ca0Db5b5f03f416d1464Dd684?to=http%3A%2F%2Fsubquery-testnet.brightlystake.com%2F%2Fquery%2FQmYR8xQgAXuCXMPGPVxxR91L4VtKZsozCM7Qsa5oAbyaQ3 .

I believe that this is causing unintended delay in the response time. For a indexer present and running in Central Europe the below is the response time when queried from a server located in London.

Consumer Indexer End point Response Time
London Europe https://gsql-proxy 500 ms
London Europe subquery-testnet.brightlystake.com 40 ms

However when the test is repeated using a customer location from Chicago the response times are more or less equal. A quick check seems to indicate that https://gsql-proxy endpoint servers are both located in US-EAST location which maybe causing the additional delay due to round-trips from London to Us adding to the response time.

You must be logged in to vote

Replies: 2 comments 4 replies

Comment options

Actually the requests are not routed to the proxy. The load generator doesn't have limitation of using http endpoints.

You must be logged in to vote
0 replies
Comment options

But I did see an indexer who put gql-proxy as their indexer url in the indexer metadata, which I think shouldn't be encouraged. gql-proxy is a fall-back solution only for indexer doesn't have https certs.

You must be logged in to vote
4 replies
Comment options

How exactly do we update in indexer metadata ? The default query URL is visible with gsql-proxy when checked in the projects-> indexer tab
image

Comment options

In the UI, we added proxy for indexers whose endpoint isn't http.
The place for indexer to specify their endpoint is in the indexer app.
image

Comment options

Hi Ian
I have already set the end point in the admin page.
Even for your indexers I can see only the gsql-proxy endpoint in the indexers page(https://frontier.subquery.network/explorer/) of the projects .

Where are the consumers supposed to get the end point for querying from their indexers ?

I think it would be better to add a query URL in the (https://frontier.subquery.network/plans/service-agreements/ongoing) so that they can get the query URL of the indexers with who they have the service agreement instead of going through the entire list of indexers. This page can have the direct endpoint without the gsql proxy

image

Comment options

I got your point, we can add a button so consumer can copy the original url.
For your suggestion, we are adding playground for ongoing agreements, you will see it soon within this week.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Converted from issue

This discussion was converted from issue #1036 on May 18, 2022 11:45.

AltStyle によって変換されたページ (->オリジナル) /