Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8840625
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T10:30:21+00:00 2026-06-14T10:30:21+00:00

I’ve been doing some research and I’m trying to figure out the best method

  • 0

I’ve been doing some research and I’m trying to figure out the best method to run one of our sites. In short, there will be about 100 subdomains and each subdomain has 21 cron scripts that need to be run. I have shortened it down to 11 by using some fopen functions where it can be used. Each subdomain uses the same APIs more less to extract data and store it in the local mysql DB. All subdomains have their own DB and it is not shared and information will never overlap between these databases as they are all unique pieces of data.

We intend to host it on VPS hosting, which I’m not sure would be the best idea, but it should do the job from what we are anticipating. Intervals for these 11 scripts are one of the following:

5 min, 8 min, 10 min, 15 min,30 min, 45 min, 1 hour, 3 hours, 8 hours, 12 hours, and 24 hours

The ones that run on under 10 minutes intervals are generally very quick to load (under 20 seconds/script)

My question is, what is the best way/best practices to opening this many scripts without…
a.) crashing the server
b.) slowing the server to something ridiculous
c.) Not timing out our cron scripts.

My thoughts for a method:
1) Create 11 cron scripts in total and run fopen functions with possible a sleep() function inbetween each script. The problem is there may be 100 files that need to be opened per script.
2) Create 1100 cron jobs to run at set times.
3) Create maybe about 110 fopen cron scripts that will run 10 scripts per file.

If anyone can help out with tips or tricks, that would be greatly appreciated!!

Also, for server usage, dedicated or VPS be necessary?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T10:30:22+00:00Added an answer on June 14, 2026 at 10:30 am

    If I understand you correctly, you would probably want to setup the 11 cron scripts, and each of those cron scripts would call the other needed scripts in sequence. You probably would not need to sleep() inbetween because they would run in sequence, not in parallel. To reduce server load you can also make the scripts run in low priority by using the “nice” command.

    Dedicated or VPS is completely dependent on how much load you are putting on the server. Performance of a VPS can also vary heavily from provider to provider. It really cannot be gauged from the information given. If you are trying to save money, then I would say just try it on the VPS. You can always move to a more expensive dedicated server later.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I'm trying to convert HTML to plain text. I get many &\#8217; &\#8220; etc.
Let's say I'm outputting a post title and in our database, it's Hello Y’all
I have a jquery bug and I've been looking for hours now, I can't
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have just tried to save a simple *.rtf file with some websites and
For some reason, after submitting a string like this Jack’s Spindle from a text
I am trying to understand how to use SyndicationItem to display feed which is
Basically, what I'm trying to create is a page of div tags, each has
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.