Skip to content

feat: xp instead of points#3751

Draft
AmarTrebinjac wants to merge 1 commit intomainfrom
ENG-1161
Draft

feat: xp instead of points#3751
AmarTrebinjac wants to merge 1 commit intomainfrom
ENG-1161

Conversation

@AmarTrebinjac
Copy link
Copy Markdown
Contributor

No description provided.

@pulumi
Copy link
Copy Markdown

pulumi bot commented Mar 26, 2026

🍹 The Update (preview) for dailydotdev/api/prod (at d5762f2) was successful.

✨ Neo Explanation

This is a standard application release rolling out a new build to all 7 services and 38 cron jobs in production, along with fresh database and ClickHouse migration jobs for the new version. The WebSocket service also gains the ability to run on cheaper spot/preemptible nodes as a cost-saving measure.

Root Cause Analysis

A new version of the application has been built and is being deployed across the entire production environment. Every workload is being updated to point to the new container image, replacing the previous build.

Dependency Chain

The new application version cascades uniformly across all resource types:

  • 7 Deployments (API, background workers, WebSocket server, private, temporal, personalized digest, worker jobs) are rolling out the new image
  • 38 CronJobs are updated to run the new image on their next scheduled execution
  • 2 one-time migration Jobs (database and ClickHouse) from the previous release are deleted, and 2 new migration Jobs are created to run the schema migrations for the new release

Notably, the WebSocket deployment (vpc-native-ws-deployment) has an additional change beyond the image update: it's gaining new node affinity rules and tolerations that allow it to be scheduled on spot/preemptible nodes, which is a cost-optimization change not present in the other deployments.

Risk analysis

No stateful resources (databases, storage buckets) are being modified. The migration jobs are a normal part of the deploy process. The Kubernetes Deployments will perform rolling updates, so the API and worker services should remain available during the rollout. The new spot/preemptible node scheduling for the WebSocket deployment could result in occasional pod preemptions, but this is an expected trade-off of that configuration.

Resource Changes

    Name                                                       Type                           Operation
~   vpc-native-clean-zombie-opportunities-cron                 kubernetes:batch/v1:CronJob    update
~   vpc-native-channel-highlights-cron                         kubernetes:batch/v1:CronJob    update
+   vpc-native-api-db-migration-9a1ea43c                       kubernetes:batch/v1:Job        create
~   vpc-native-update-trending-cron                            kubernetes:batch/v1:CronJob    update
~   vpc-native-validate-active-users-cron                      kubernetes:batch/v1:CronJob    update
~   vpc-native-personalized-digest-deployment                  kubernetes:apps/v1:Deployment  update
~   vpc-native-update-source-tag-view-cron                     kubernetes:batch/v1:CronJob    update
~   vpc-native-clean-stale-user-transactions-cron              kubernetes:batch/v1:CronJob    update
~   vpc-native-clean-gifted-plus-cron                          kubernetes:batch/v1:CronJob    update
~   vpc-native-rotate-daily-quests-cron                        kubernetes:batch/v1:CronJob    update
~   vpc-native-check-analytics-report-cron                     kubernetes:batch/v1:CronJob    update
~   vpc-native-user-profile-analytics-history-clickhouse-cron  kubernetes:batch/v1:CronJob    update
-   vpc-native-api-db-migration-56b0ef33                       kubernetes:batch/v1:Job        delete
-   vpc-native-api-clickhouse-migration-56b0ef33               kubernetes:batch/v1:Job        delete
~   vpc-native-user-profile-updated-sync-cron                  kubernetes:batch/v1:CronJob    update
~   vpc-native-clean-zombie-images-cron                        kubernetes:batch/v1:CronJob    update
~   vpc-native-channel-digests-cron                            kubernetes:batch/v1:CronJob    update
~   vpc-native-bg-deployment                                   kubernetes:apps/v1:Deployment  update
~   vpc-native-update-current-streak-cron                      kubernetes:batch/v1:CronJob    update
~   vpc-native-deployment                                      kubernetes:apps/v1:Deployment  update
~   vpc-native-clean-zombie-users-cron                         kubernetes:batch/v1:CronJob    update
~   vpc-native-update-highlighted-views-cron                   kubernetes:batch/v1:CronJob    update
~   vpc-native-daily-digest-cron                               kubernetes:batch/v1:CronJob    update
~   vpc-native-post-analytics-history-day-clickhouse-cron      kubernetes:batch/v1:CronJob    update
~   vpc-native-update-views-cron                               kubernetes:batch/v1:CronJob    update
~   vpc-native-update-tag-recommendations-cron                 kubernetes:batch/v1:CronJob    update
~   vpc-native-sync-subscription-with-cio-cron                 kubernetes:batch/v1:CronJob    update
~   vpc-native-clean-expired-better-auth-sessions-cron         kubernetes:batch/v1:CronJob    update
~   vpc-native-update-source-public-threshold-cron             kubernetes:batch/v1:CronJob    update
~   vpc-native-user-posts-analytics-refresh-cron               kubernetes:batch/v1:CronJob    update
~   vpc-native-hourly-notification-cron                        kubernetes:batch/v1:CronJob    update
~   vpc-native-personalized-digest-cron                        kubernetes:batch/v1:CronJob    update
~   vpc-native-clean-zombie-user-companies-cron                kubernetes:batch/v1:CronJob    update
~   vpc-native-update-achievement-rarity-cron                  kubernetes:batch/v1:CronJob    update
~   vpc-native-post-analytics-clickhouse-cron                  kubernetes:batch/v1:CronJob    update
~   vpc-native-user-profile-analytics-clickhouse-cron          kubernetes:batch/v1:CronJob    update
~   vpc-native-generate-search-invites-cron                    kubernetes:batch/v1:CronJob    update
~   vpc-native-calculate-top-readers-cron                      kubernetes:batch/v1:CronJob    update
~   vpc-native-ws-deployment                                   kubernetes:apps/v1:Deployment  update
~   vpc-native-private-deployment                              kubernetes:apps/v1:Deployment  update
~   vpc-native-squad-posts-analytics-refresh-cron              kubernetes:batch/v1:CronJob    update
... and 10 other changes

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

Successfully merging this pull request may close these issues.

1 participant