Tweak sync default internalUnverified
c41402e parent: b16eb14 modified
.env.example +1 -1 | @@ -3,7 +3,7 @@ GLEAN_DB=glean.db | ||
| 3 | 3 | GLEAN_SESSION_KEY=change-me-to-a-random-string |
| 4 | 4 | GLEAN_JETSTREAM=wss://jetstream.glean.at |
| 5 | 5 | GLEAN_PLC_URL=https://didplc.glean.at |
| 6 | -GLEAN_SYNC_INTERVAL=24h | |
| 6 | +GLEAN_SYNC_INTERVAL=8h | |
| 7 | 7 | GLEAN_CLUSTER_INTERVAL=60m |
| 8 | 8 | GLEAN_FETCH_INTERVAL=15m |
| 9 | 9 | GLEAN_COLLECTION_DIR_URL=https://lightrail.microcosm.blue/xrpc/com.atproto.sync.listReposByCollection?collection=at.glean.subscription |
| @@ -3,7 +3,7 @@ GLEAN_DB=glean.db | |||
| 3 | GLEAN_SESSION_KEY=change-me-to-a-random-string | 3 | GLEAN_SESSION_KEY=change-me-to-a-random-string |
| 4 | GLEAN_JETSTREAM=wss://jetstream.glean.at | 4 | GLEAN_JETSTREAM=wss://jetstream.glean.at |
| 5 | GLEAN_PLC_URL=https://didplc.glean.at | 5 | GLEAN_PLC_URL=https://didplc.glean.at |
| 6 | -GLEAN_SYNC_INTERVAL=24h | 6 | +GLEAN_SYNC_INTERVAL=8h |
| 7 | GLEAN_CLUSTER_INTERVAL=60m | 7 | GLEAN_CLUSTER_INTERVAL=60m |
| 8 | GLEAN_FETCH_INTERVAL=15m | 8 | GLEAN_FETCH_INTERVAL=15m |
| 9 | GLEAN_COLLECTION_DIR_URL=https://lightrail.microcosm.blue/xrpc/com.atproto.sync.listReposByCollection?collection=at.glean.subscription | 9 | GLEAN_COLLECTION_DIR_URL=https://lightrail.microcosm.blue/xrpc/com.atproto.sync.listReposByCollection?collection=at.glean.subscription |
modified
main.go +1 -1 | @@ -25,7 +25,7 @@ func main() { | ||
| 25 | 25 | addr := flag.String("addr", envOr("GLEAN_ADDR", ":8080"), "listen address") |
| 26 | 26 | dbPath := flag.String("db", envOr("GLEAN_DB", "glean.db"), "database path") |
| 27 | 27 | jetstreamURL := flag.String("jetstream", envOr("GLEAN_JETSTREAM", "wss://jetstream.glean.at"), "Jetstream URL") |
| 28 | - syncInterval := flag.Duration("sync-interval", envDuration("GLEAN_SYNC_INTERVAL", 24*time.Hour), "PDS sync interval") | |
| 28 | + syncInterval := flag.Duration("sync-interval", envDuration("GLEAN_SYNC_INTERVAL", 8*time.Hour), "PDS sync interval") | |
| 29 | 29 | clusterInterval := flag.Duration("cluster-interval", envDuration("GLEAN_CLUSTER_INTERVAL", 1*time.Hour), "cluster recomputation interval") |
| 30 | 30 | fetchInterval := flag.Duration("fetch-interval", envDuration("GLEAN_FETCH_INTERVAL", 15*time.Minute), "feed fetch tick interval") |
| 31 | 31 | collectionDirURL := flag.String("collection-dir", envOr("GLEAN_COLLECTION_DIR_URL", ""), "collection directory URL for startup backfill") |
| @@ -25,7 +25,7 @@ func main() { | |||
| 25 | addr := flag.String("addr", envOr("GLEAN_ADDR", ":8080"), "listen address") | 25 | addr := flag.String("addr", envOr("GLEAN_ADDR", ":8080"), "listen address") |
| 26 | dbPath := flag.String("db", envOr("GLEAN_DB", "glean.db"), "database path") | 26 | dbPath := flag.String("db", envOr("GLEAN_DB", "glean.db"), "database path") |
| 27 | jetstreamURL := flag.String("jetstream", envOr("GLEAN_JETSTREAM", "wss://jetstream.glean.at"), "Jetstream URL") | 27 | jetstreamURL := flag.String("jetstream", envOr("GLEAN_JETSTREAM", "wss://jetstream.glean.at"), "Jetstream URL") |
| 28 | - syncInterval := flag.Duration("sync-interval", envDuration("GLEAN_SYNC_INTERVAL", 24*time.Hour), "PDS sync interval") | 28 | + syncInterval := flag.Duration("sync-interval", envDuration("GLEAN_SYNC_INTERVAL", 8*time.Hour), "PDS sync interval") |
| 29 | clusterInterval := flag.Duration("cluster-interval", envDuration("GLEAN_CLUSTER_INTERVAL", 1*time.Hour), "cluster recomputation interval") | 29 | clusterInterval := flag.Duration("cluster-interval", envDuration("GLEAN_CLUSTER_INTERVAL", 1*time.Hour), "cluster recomputation interval") |
| 30 | fetchInterval := flag.Duration("fetch-interval", envDuration("GLEAN_FETCH_INTERVAL", 15*time.Minute), "feed fetch tick interval") | 30 | fetchInterval := flag.Duration("fetch-interval", envDuration("GLEAN_FETCH_INTERVAL", 15*time.Minute), "feed fetch tick interval") |
| 31 | collectionDirURL := flag.String("collection-dir", envOr("GLEAN_COLLECTION_DIR_URL", ""), "collection directory URL for startup backfill") | 31 | collectionDirURL := flag.String("collection-dir", envOr("GLEAN_COLLECTION_DIR_URL", ""), "collection directory URL for startup backfill") |
modified
readme.md +1 -1 | @@ -57,7 +57,7 @@ Then open `http://localhost:8080`. | ||
| 57 | 57 | | `GLEAN_ADDR` | `:8080` | Listen address | |
| 58 | 58 | | `GLEAN_DB` | `glean.db` | SQLite base path (`_users`, `_articles`, `_recs` suffixes) | |
| 59 | 59 | | `GLEAN_JETSTREAM` | `wss://jetstream.glean.at` | Jetstream WebSocket URL | |
| 60 | -| `GLEAN_SYNC_INTERVAL` | `24h` | PDS sync interval (Go duration: `24h`, `12h`, etc.) | | |
| 60 | +| `GLEAN_SYNC_INTERVAL` | `8h` | PDS sync interval (Go duration: `24h`, `12h`, etc.) | | |
| 61 | 61 | | `GLEAN_CLUSTER_INTERVAL` | `1h` | Cluster recomputation interval (Go duration) | |
| 62 | 62 | | `GLEAN_FETCH_INTERVAL` | `15m` | Feed fetch scheduler tick interval (Go duration) | |
| 63 | 63 | | `GLEAN_COLLECTION_DIR_URL` | _(empty)_ | Collection directory URL for startup backfill | |
| @@ -57,7 +57,7 @@ Then open `http://localhost:8080`. | |||
| 57 | | `GLEAN_ADDR` | `:8080` | Listen address | | 57 | | `GLEAN_ADDR` | `:8080` | Listen address | |
| 58 | | `GLEAN_DB` | `glean.db` | SQLite base path (`_users`, `_articles`, `_recs` suffixes) | | 58 | | `GLEAN_DB` | `glean.db` | SQLite base path (`_users`, `_articles`, `_recs` suffixes) | |
| 59 | | `GLEAN_JETSTREAM` | `wss://jetstream.glean.at` | Jetstream WebSocket URL | | 59 | | `GLEAN_JETSTREAM` | `wss://jetstream.glean.at` | Jetstream WebSocket URL | |
| 60 | -| `GLEAN_SYNC_INTERVAL` | `24h` | PDS sync interval (Go duration: `24h`, `12h`, etc.) | | 60 | +| `GLEAN_SYNC_INTERVAL` | `8h` | PDS sync interval (Go duration: `24h`, `12h`, etc.) | |
| 61 | | `GLEAN_CLUSTER_INTERVAL` | `1h` | Cluster recomputation interval (Go duration) | | 61 | | `GLEAN_CLUSTER_INTERVAL` | `1h` | Cluster recomputation interval (Go duration) | |
| 62 | | `GLEAN_FETCH_INTERVAL` | `15m` | Feed fetch scheduler tick interval (Go duration) | | 62 | | `GLEAN_FETCH_INTERVAL` | `15m` | Feed fetch scheduler tick interval (Go duration) | |
| 63 | | `GLEAN_COLLECTION_DIR_URL` | _(empty)_ | Collection directory URL for startup backfill | | 63 | | `GLEAN_COLLECTION_DIR_URL` | _(empty)_ | Collection directory URL for startup backfill | |