The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Some help with crons

Discussion in 'General Discussion' started by ibiza69, Nov 19, 2005.

  1. ibiza69

    ibiza69 Member

    Joined:
    Aug 17, 2005
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Hi.

    yesterday I posted about crons at our server, and it looked to be solved, but it wasn´t.

    We have 160 clients, with their own autoresponder, plus 3 crons each. Aswell 60 more clients waiting for their systems, but a few days ago, the cron tab at the sever failed the acces, we could not go on to it. We had then, about 500 crons running every 5 minutes, from 11:45 to 8 am. Our server support made us an script, for bringing those crons to a file, so the server did not suffer from cpu ussage, and this did not work, the crons look as they work, but only sends instant messages ok and the daily ones, are sended to our email, the owner of the server, not to their clients, this morning we received nearly 10000 emails.

    Does anyone know how to solve this?. How to make MANY crons and how to run them?.

    Thanks to all and please it´s very urgent, this is comming since Tuesday and our clients are just to leave very ungry.

    CARLOS
     
    #1 ibiza69, Nov 19, 2005
    Last edited: Nov 19, 2005
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    It's not very clear what solution you're looking for. Ultimately, if the server cannot cope with the load that you're putting on it by having too frequent CRON job runs, or too many copies of the autoresponder running, then the best you can do is to either move clients to more servers or upgrade the hardware in your current server whereever the bottleneck appears to be.
     
  3. ibiza69

    ibiza69 Member

    Joined:
    Aug 17, 2005
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Thanks, it was working great

    Hi, it was working great, we uploaded the cpu and the ram, two weeks ago. Aswell when the crontab at the domain pannel stopped working the cpu was great, it was not hot, but the crontab did not work. That´s why this people from support made a script out of the cron tab for working the crons. Since they made this, the crons seem to work, but they don´t do their job, I mena, the test SSH said they where working, but when you registrer, you only receive the first letter, and the next the day after never comes, so they can´t be working, and before this was working real well.

    No, since this happened, everything at the server it´s crazy, exim stoped, pop stoped, ftp stoped, cpu went to 4,50, we fiz all that but again and agina jumps and breaks everything.

    This did not happen before having those crons, it was real good how everything was working with the update we made at the server with new ram and cpu..

    Aswell I´m receiving during the day more than 30.ooo emails and it´s going on and on, returned emails.

    What I think it´s that the script this people made, jump the names that are in the list, of the subdomains working at our web, but it goes so fast, that gets all names trying to send at the same time.

    Have you got an idea how to make a cron for CRON.DAILY that sends email for exaple from 7 am, but waiting 2-3 minutes, to jump to the next name in the list, so they all not go at the same time (the autoresponder daily newsletter).

    our minute crons are:

    #!/bin/bash
    strings /home/domainname/public_html/crons/list | while read line ; do
    lynx -dump http://$line.domainname/responder/robot/check_instant_messages.php 2>/dev/null 1>&2
    lynx -dump http://$line.domainname.com/responder/robot/check_deliver_broadcast_messages.php 2>/dev/null 1>&2
    done

    and our daily crons are:

    #!/bin/bash
    strings /home/domainname/public_html/crons/list | while read line ; do
    lynx -dump http://$line.domainname.com/responder/robot/check_deliver_followup_messages.php 2>/dev/null 1>&2
    done

    Both work inside a file called crons, with another file called list, that has the account name of all clients, so it jumps from one to another to send their list.

    Maybe you have a solution, I´m receiving hundreds of emails.

    Thanks !
     
  4. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    It's really difficult to say third-hand. It almost sounds like you have a looping or poorly coded script.

    Probably the only way to reduce that type of load is for the developer of the script to recode it to be more resource friendly.

    There's little you can do if what they're doing is using excessive server load.

    Have you tried changing the frequency that the cron jobs run? Instead of once a minute, run them once every 5 minutes.
     
  5. ibiza69

    ibiza69 Member

    Joined:
    Aug 17, 2005
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    well. in the documentation said..

    Hi, in the autoresponder doc. said to run every minute 2 of them and one daily, but the problems not come from the minute ones, they come from the daily ones that they do not reach the people and the are boing returned to me. Today I´ve received 40.000 emails and going.

    Do you know anyone that can help us with this?

    Thanks, our support is very bussy and can´t help us as quick as we need.
     
Loading...

Share This Page