LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-10-2014, 04:28 AM   #1
bgcadmit
LQ Newbie
 
Registered: Sep 2014
Posts: 12

Rep: Reputation: Disabled
Production server configuration


Hello, I'm new here, so sorry if I've choosen wrong forum section.

I have a problem, that i'd like to address to you. We are creating an webapp that shows infos and statistics. And we have a problem about how to 'do right' our server configuration

The thing is that our apps use crons to do few things, and crons sometimes blocks our database, and when that happens, whole application is frozen, which means no user input, no pages loading etc.

What should we do to prevent this from happening? is there a way to mirror the database and hold two of them one for backend and one for frontend, or we should limit connections to the database, or maybe we should use some other method.

Any help would be appreciated
 
Old 09-10-2014, 10:08 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,836

Rep: Reputation: 8007Reputation: 8007Reputation: 8007Reputation: 8007Reputation: 8007Reputation: 8007Reputation: 8007Reputation: 8007Reputation: 8007Reputation: 8007Reputation: 8007
Quote:
Originally Posted by bgcadmit View Post
Hello, I'm new here, so sorry if I've choosen wrong forum section.

I have a problem, that i'd like to address to you. We are creating an webapp that shows infos and statistics. And we have a problem about how to 'do right' our server configuration The thing is that our apps use crons to do few things, and crons sometimes blocks our database, and when that happens, whole application is frozen, which means no user input, no pages loading etc.

What should we do to prevent this from happening? is there a way to mirror the database and hold two of them one for backend and one for frontend, or we should limit connections to the database, or maybe we should use some other method.
Not much we can tell you, since you give us no details. You don't tell us what version/distro of Linux, what database you're using, what the cron jobs do, when they do it, what applications are running, how many users, what kind of hardware, what storage device(s) hold the database, etc. We can't guess.

Depending on the database and what you're using for backups, there are ways to do a 'hot' backup of a database (that is, back it up while it's running). MySQL has the mysqldump utility, that will take a copy of a database, and shove it into a file. You can restore it from that file later, and you don't have to take the DB down to do it.

Provide some details, and we can try to help.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
My first production server. What should i focus on? killout Linux - Enterprise 6 03-06-2013 07:11 PM
[SOLVED] Copying OpenBSD Kernel from a non production to production machine lcxpics *BSD 3 05-05-2011 02:58 AM
32bit Test Server for 64bit Production Server jmxfield Linux - Newbie 4 03-21-2011 06:50 PM
Lampp for a production server? xpucto Linux - Newbie 9 06-10-2006 02:42 AM
Production server? RusRob Debian 2 09-02-2005 01:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:42 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration