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

  • Home
  • SEARCH
  • 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 390217
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T15:56:35+00:00 2026-05-12T15:56:35+00:00

For a new project that I’m working on I need to set up a

  • 0

For a new project that I’m working on I need to set up a centralized computing environment with a primary server (master) and several workstations (slaves).

The master will recieve several types of job orders with diferent intervals and expiration dates, example:

NAME        INTERVAL        EXPIRATION        OPERATIONS
Job A       5 m             9 d               2592
Job B       15 m            30 d              2880
Job C       30 m            90 d              4320
Job D       10 m            50 d              7200
Job E       10 m            20 d              2880
Job F       10 m            10 d              1440

The slaves will request new jobs to process via an API interface and once they are finished they will send the relevant data stored in SQLite to the server and request a new job.

I see nothing difficult with the slaves part, however I’m facing a small problem with the master server: what would be the best option to serve the jobs to the slaves? I’ve though of the following options:

  1. Pre-calculate and add to the database the times when the jobs will be executed.
  2. Serve each job dinamically with some sort of logic (is the MOD operator a possible solution here)?
  3. Randomly serve jobs.

It might be a good thing to say that this last option is really not an option since I’m charging by the number of operations (expiration / interval) and I think my clients wouldn’t be too happy if they would be paying for others.

I would like to hear your thoughts on how I should do this.

  • 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-05-12T15:56:35+00:00Added an answer on May 12, 2026 at 3:56 pm

    You will get a better through-put by allowing the slaves to request a job when they have time to process it.

    If the master distributes the jobs, some slaves could be waiting doing nothing while others are overloaded.

    You will also need to add some functionality to make a job available again, if the slave does not return an answer within a period of time.

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

Sidebar

Ask A Question

Stats

  • Questions 263k
  • Answers 263k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer One suggestion is to try nested bounding boxes. The main… May 13, 2026 at 11:57 am
  • Editorial Team
    Editorial Team added an answer Pointers in Windows (and other modern operating systems) are process-relative.… May 13, 2026 at 11:57 am
  • Editorial Team
    Editorial Team added an answer Using ExternalInterface allows you to communicate between ActionScript and JavaScript.… May 13, 2026 at 11:57 am

Related Questions

For a new project that I'm doing in PHP I've created an SQLMethods class
For a new project that I'm working on I need to set up a
At the company I work for we have a Utility project that is referenced
Recently, I have become increasingly familiar with Django. I have a new project that
We are evaluating SSIS to see if it will be appropriate for a new

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.