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.

Exim optimization to reduce load on high amount of emails

Discussion in 'Workarounds and Optimization' started by euro-space, Apr 19, 2014.

  1. euro-space

    euro-space Member

    Joined:
    Mar 24, 2014
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi,

    Along with few others running under OpenVZ, I have three VPS accounts (4GB RAM, 4 Burst RAM, 4 CPU's), which are used for sending large amounts of emails to the subscribed clients periodically, so when the mail-lists are being submitted, host server load averages raise up to 20 - 35 (these VPS averages from 0.5 go to 8-15), and after sending is finishing (after few hours usually), then host server comes back to normal load of 1 -2 .

    I use Exim and cPanel on those VPS accounts.
    I'd much appreciate if someone would recommend best settings for Exim for this situation, to reduce load and protect other accounts from suffering by poor performance and high IO times.

    Thanks a lot!
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    654
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    I'm not sure there is much you could do to optimize the Exim configuration itself, but you could limit the number of emails sent out per hour for those accounts to ensure the server load does not reach those levels. How large are the email lists?

    Thank you.
     
  3. euro-space

    euro-space Member

    Joined:
    Mar 24, 2014
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi,

    Thanks for your reply, ok, I limit sending total emails per account per hour, however these emails should be delivered and the list is with about 15000-16000 recipients.

    any advice?

    Thanks a lot.
     
  4. vanessa

    vanessa Well-Known Member
    PartnerNOC

    Joined:
    Sep 26, 2006
    Messages:
    817
    Likes Received:
    22
    Trophy Points:
    18
    Location:
    Virginia Beach, VA
    cPanel Access Level:
    DataCenter Provider
    In addition to cPanelMichael's suggestion, you can also perhaps throttle on a per-email basis. Most mailing list apps have this option now to, for example, send a certain # of emails per second, or wait a certain amount of time between each send. This will obviously take longer to send the list, but Exim itself isn't necessarily in need of resource optimization - each email you send forks a separate process, and load is based on specific states of processes running on the system. So if you want to send a large amount of email at time, your only other option really would be to send from a box with more CPU available to it, or consider sending your email from a server separate from where your other accounts are hosted.
     
  5. euro-space

    euro-space Member

    Joined:
    Mar 24, 2014
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi,

    Thanks for the update, I'll consider your advice.
     
Loading...

Share This Page