You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Disable proxy buffering - important for HTTP streaming connections (configured in the PowerSync client SDK)
89
+
# Disable proxy response buffering.
90
+
# This is not relevant for websocket connections, but is important when using
91
+
# HTTP streaming connections (configured in the PowerSync client SDK).
90
92
proxy_buffering off;
91
93
}
92
94
}
@@ -104,9 +106,11 @@ If the load balancer supports health checks, it may be configured to poll the AP
104
106
105
107
### Migrations
106
108
109
+
Occasionally, new versions of the PowerSync service image may require migrations on the underlying storage database. This is also specifically required the first time the service starts up on a new storage database.
110
+
107
111
By default, migrations are run as part of the replication and API containers. In some cases, a migration may add signifant delay to the container startup.
108
112
109
-
To avoid this, the migrations may be run as a separate job on each update, before replacing the rest of the containers. To run the migrations, run the docker command `migrate up`, for example `docker run powersync migrate up`.
113
+
To avoid this startup delay, the migrations may be run as a separate job on each update, before replacing the rest of the containers. To run the migrations, run the docker command `migrate up`, for example `docker run powersync migrate up`.
110
114
111
115
In this case, disable automatic migrations in the config:
112
116
@@ -119,6 +123,9 @@ migrations:
119
123
disable_auto_migration: true
120
124
```
121
125
126
+
Note that if you disable automatic migrations, and do not run the migration job manually,
127
+
the service may run with an outdated storage schema version. This may lead to unexpected and potentially difficult-to-debug errors in the service.
128
+
122
129
## Backups
123
130
124
131
We recommend using Git to backup your configuration files.
0 commit comments