Sorry I keep coming back with more questions! Is there a way to set the postgres timeout on self host? We keep getting timeouts once we have more than like a week of data
It seems likely that Phoenix does not explicitly document a way to set the PostgreSQL timeout directly within its configuration. However, you might be able to address timeout issues by adjusting the connection pool settings or the database configuration itself. For instance, increasing the pool_size and max_overflow settings in your database connection configuration might help manage more connections and reduce timeouts, as suggested in a Slack conversation.Would you like more detail on how to configure these settings or manage PostgreSQL connections in Phoenix? Sources:
- Slack conversation on connection pool settings
馃挕聽Hint: Mention RunLLM in the thread for followups.
Nevermind, we thought it was timeout but we've run out of IDs 馃珷 graphql.error.graphql_error.GraphQLError: Int cannot represent non 32-bit signed integer value: 2743948010 Link graphql.error.graphql_error.GraphQLError: Int cannot represent non 32-bit signed integer value: 2743948010
I'll open an issue on the github
oh wow
are you able to inspect the network tab to see which query is crashing?
Yep
query ProjectPageQuery(
$id: GlobalID!
$timeRange: TimeRange!
) {
project: node(id: $id) {
__typename
...ProjectPageHeader_stats
...StreamToggle_data
__isNode: __typename
id
}
}
fragment ProjectPageHeader_stats on Project {
traceCount(timeRange: $timeRange)
tokenCountTotal(timeRange: $timeRange)
tokenCountPrompt(timeRange: $timeRange)
tokenCountCompletion(timeRange: $timeRange)
latencyMsP50: latencyMsQuantile(probability: 0.5, timeRange: $timeRange)
latencyMsP99: latencyMsQuantile(probability: 0.99, timeRange: $timeRange)
spanAnnotationNames
documentEvaluationNames
id
}
fragment StreamToggle_data on Project {
streamingLastUpdatedAt
id
}{
"id": "UHJvamVjdDoz",
"timeRange": {
"start": "2025-03-29T14:00:00.000Z"
}
}ok this looks like token count may be too large and should probably be float instead
thanks for bringing this to our attention. we鈥檒l get it fixed
Yep that looks to be the case. Also I had opened this github issue https://github.com/Arize-ai/phoenix/issues/7291 Thank you!
fix has been released in arize-phoenix v8.28.0
Awesome, thank you!
