perf(clickhouse): P0 dashboard/observability query limits, cache, slower polling

This commit is contained in:
ryan
2026-07-02 15:20:19 +08:00
parent 28c14eb054
commit 3e910f1961
6 changed files with 90 additions and 22 deletions
@@ -289,7 +289,7 @@ export function NodeObservability({
const observabilityQuery = useQuery({
queryKey: ['openflare', 'node-observability', nodeId],
queryFn: () => NodeService.getObservability(nodeId, { hours: 24, limit: 48 }),
refetchInterval: 10000,
refetchInterval: 30000,
});
const cleanupMutation = useMutation({
+1 -1
View File
@@ -28,7 +28,7 @@ export default function OpenFlareDashboardPage() {
const overviewQuery = useQuery({
queryKey: dashboardQueryKey,
queryFn: () => DashboardService.getOverview(),
refetchInterval: 30_000,
refetchInterval: 60_000,
});
const overview = overviewQuery.data;