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 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

Related Questions

In near future I'll need to start working on a new project that consist
I'm making extensive use of Markdown in a new project that I'm working on,
We are working on a new web project that is just loose html/css/js files
Hey I just began working on a new project that requires, tab navigation, and
I just started working on a new project that already contains a .svn folder
I am working on a very large project that has several Visual Studio projects.
I'm working on a new project that I plan to keep in a git
I am working on a new project that makes use of Entity Framework. I
I'm working on a new project that needs a new virtualenv. When I do
A friend and I are working on a new project that is using SQL

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.