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

Break up makemap #149

Open
1 task
popensesame opened this issue Jan 5, 2022 · 0 comments
Open
1 task

Break up makemap #149

popensesame opened this issue Jan 5, 2022 · 0 comments

Comments

@popensesame
Copy link
Member

Currently there is an hourly cron job that runs makemap, makeviewerconfig, and fileprocessor to keep the viewer up to date. makemap in particular is very intensive and slows down the server for about 10 minutes every hour, which is not ideal.

I think we should break up makemap into multiple scripts and then fine-tune the hourly update so we're only building essential mapfiles.

  • Break out makemap until it is just a "container" script

So every hour the ForWarn 2 and 3 mapfiles are completely rebuilt, and new mapfiles are added for any new files. We could break this out into two processes: 1) "rebuild all mapfiles" and 2) "add new mapfiles". So once a day, in the middle of the night, #1 runs. But every hour we run #2. As far as I know, process #2 would be the only mapfile/makemap-related process that should run every hour.

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

1 participant