mirror of
https://github.com/ThePhaseless/Byparr.git
synced 2026-11-10 11:08:20 +00:00
Add Disk Wear Reduction Recommendations
This commit is contained in:
1 parent
98e1668721
commit
4571c5b422
2 files changed
+17
-1
No files matched your search
@@ -49,6 +49,16 @@ Recently I've partnered with a _new in town_ proxy service - ProxyBase - to offe
|
||||
docker compose up -d
|
||||
```
|
||||
|
||||
> [!NOTE]
|
||||
> Byparr performs a *lot* of R/W operations on your disk. Each Playwright request spins up a new instance with an associated cache and SQLite database. To reduce disk wear, we recommend eliminating unnecessary requests, such as health checks, and allocating temp storage in RAM by adding the following snippet to your Docker Compose configuration:
|
||||
```yaml
|
||||
mem_limit: 3g
|
||||
shm_size: "1gb"
|
||||
tmpfs:
|
||||
- /tmp:exec,mode=1777,size=1G
|
||||
- /cache:mode=1777,size=512M
|
||||
```
|
||||
|
||||
### Docker install
|
||||
|
||||
1. Pull and run the image:
|
||||
|
||||
+7
-1
@@ -7,6 +7,12 @@ services:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
# Uncomment below to offload disk operations to RAM and reduce disk wear:
|
||||
# mem_limit: 3g
|
||||
# shm_size: "1gb"
|
||||
# tmpfs:
|
||||
# - /tmp:exec,mode=1777,size=1G
|
||||
# - /cache:mode=1777,size=512M
|
||||
# Uncomment below to use byparr outside of internal network
|
||||
# ports:
|
||||
# - "8191:8191"
|
||||
# - "8191:8191"
|
||||
Reference in new issue
Block a user