Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Memory usage during db migration #491

Open
eeveelution1313 opened this issue Apr 12, 2024 · 3 comments
Open

Memory usage during db migration #491

eeveelution1313 opened this issue Apr 12, 2024 · 3 comments

Comments

@eeveelution1313
Copy link

eeveelution1313 commented Apr 12, 2024

I'm in the middle of migrating from sqlite to mariadb, in hopes of speeding some things up, and i'm seeing extremely high memory utilisation. I'm not sure if it could be related to it not being done with scheduled tasks before trying to switch.

image

screenshot of stats before start of migration
IMG_4712

i followed the guide from here https://github.com/meeb/tubesync/blob/main/docs/other-database-backends.md

Not sure if it matters but it's running using podman-compose with the following

  TubeSync:
    image: ghcr.io/meeb/tubesync:latest
    container_name: TubeSync
    ports:
      - 4848:4848
    volumes:
      - ./Managers/TubeSync:/config
      - /mnt/HDD/Media/Youtube/:/downloads
    environment:
      - TZ=Europe/Copenhagen
      - PUID=1000
      - PGID=1907200513
      - TUBESYNC_WORKERS=1
      - DATABASE_CONNECTION=mysql://user:pass@ip:3306/tubesync
    restart: unless-stopped

Very new to github, sorry if i didn't include something needed

@eeveelution1313
Copy link
Author

additionally after hitting the max memory it can use it seems to process scheduling tasks in patches slowing down significantly

sorry if it comes off as me complaining, that is not my intention i'm just not sure if it could be valuable information

@meeb
Copy link
Owner

meeb commented Apr 12, 2024

This is the Django dumpdata / loaddata process. This can use a lot of memory. Your usage does seem extreme however. How big is the JSON file you're trying to import into MySQL?

@eeveelution1313
Copy link
Author

i just started using this, and pretty much just added all of my subscriptions in one go, as i'm getting tired of youtube's interface. The json is 1.1 gig, the sqlite is also roughly the same size

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

No branches or pull requests

2 participants