Join our Community      Check your private messages       Profile       Search       FAQ       Memberlist       Log in

MySQL server sizing

 
Post new topic   Reply to topic    NetHosted Community Index -> FTP/SQL Support
ChrisR Reply with quote
 NetHosted Customer

 

 Joined: 29 Aug 2006
 Posts: 4
 

PostPosted: Wed Jan 31, 2007 3:43 pm    Post subject: MySQL server sizing
 
Hi

I am thinking about developing a product that tracks users on a web site, logging their ip addresses, their geographic location from the ip address and some other parameters.

The logging table has 17 columns so is not too wide. Each entry has to be looked up against a geographical lookup table that currently contains 88,000 rows (though this query currently on takes 0.05 seconds and so can be run on data logging rather than reporting).

The reporting would be fairly basic, though there has to be query activity to find instances of ip addresses across customer records.

I am thinking about hosting this product rather than releasing it as stand alone code that users install themselves.

The feasibility of this will depend on the potential size of the databases (s).

Each monitored web site could generate 100,000 log entries. Over time, the application could be logging users on 10,000 sites, though this would, of course, be a gradual take up.

I am currently running a trial version of the system that has 196,000 logged entries and occupies 27Mb which include 6Mb for the index.

This raises some questions:

Is the potential database size feasible or would it be too difficult to manage, backup, run on sane levels of server hardware?

Is MySQL up to this size of database? Would PostgreSQL be a better choice?

Would more than one server be required ie run the index on one box and the other database functions on the other?

Would it be better to create a database per customer (customers may have more than one monitored website) or to run one very long table?

Obviously I'd be looking for a dedicated server for this from the set go. Would the enterprise server be up to this? or could I start with a lower hardware level and upgrade as required?

Can NetHosted handle this level of database driven application?

Are there other things I should consider at this stage? (database replication to a hot standby server may be one)

Sorry about all the questions, but I have to see if this is a feasible project.

Thanks
Chris
Back to top
View user's profile Send private message
NetHosted - Andrew Reply with quote
 NetHosted Staff

 

 Joined: 22 Mar 2004
 Posts: 5625
 

PostPosted: Wed Jan 31, 2007 4:26 pm    Post subject:
 
Chris,

That's quite a post, I hope I cover everything.

Anything is feasible, I wouldn't worry too much about the database size (in the sense of storage).

I'm not up with the current status of these two projects. To the best of my knowledge MySQL is still considered the faster of the two in most aspects but I'd strongly advise posting your specs to the two project's mailing lists and find out what they recommend. You're going to find the experts there obviously so they will be able to advise with more certainty than I can. I would suggest finding out the queries/second of your current setup and extrapolating that result, that should be a useful bit of info for them to help them talk feasibility/hardware.

Well you're looking at the choice between 10,000 databases or 10,000 entries in a table. It depends how you are coding your project as to which would give better performance.

For a project such as this you're looking to spend your money on disk speed, processor power and RAM. You'll notice the benefits of faster disk speed more than anything on this I would suggest (as long as you don't short change the processor/RAM clearly). I would suggest RAID10 if you're looking for performance with the added redundancy (think of it as RAID0 with the benefits of RAID1). Of course you can always opt for RAID05 or 50 if you prefer the RAID5 route.

Replication on a system that is reliant on SQL is a smart move.

We can cope with such a setup but this really is a custom job, implying custom pricing.

This project could be started on a lesser spec server(s) but the solution I suggest above is the best for the project later down the line (10,000 users).

Hope that helps,

Andrew

_________________
| Andrew Bassett
| Managing Director, NetHosted Ltd.
| Resellers, take a look at overselling !
| Members, tell us what you think  of NetHosted!
Back to top
View user's profile Send private message
ChrisR Reply with quote
 NetHosted Customer

 

 Joined: 29 Aug 2006
 Posts: 4
 

PostPosted: Wed Jan 31, 2007 5:07 pm    Post subject:
 
Hi Andrew

Many thanks for your considered reply

Quote:
Well you're looking at the choice between 10,000 databases or 10,000 entries in a table. It depends how you are coding your project as to which would give better performance.


Actually a single table could potentially hold 100,000 x 10,000 entries as I would put a limit on 100,000 entries per web site and there could be, in time, 10,000 web sites being tracked.

The current trial system is not taxing my existing dedicated server (Dual Xeon, 2 Gb RAM, RAID 0 SATA) at all, though entries are being logged more on a per minute basis rather per second. I wouldn't want to use this server for this project, though, as it could compromise the speed of important sites.

Each log entry consists only of a simple select query against the location table, which is correctly indexed, and then an insert query, so there is low overhead for the data acquisition. It's more the reporting that could cause problems with server loads, and also, the sheer potential size of the database.

Researching the web, I've come across posts about large forums, which often have 20+ queries per page load and a 3GB database that are running on a server with specs not too far distant from my existing server.

If we started off with a lower spec server would you migrate the database and application if/when we need to upgrade to a higher spec?

I'll take your advice about asking the gurus on the respective database mailing lists and forums.

Thanks for your help and advice

Chris
Back to top
View user's profile Send private message
NetHosted - Andrew Reply with quote
 NetHosted Staff

 

 Joined: 22 Mar 2004
 Posts: 5625
 

PostPosted: Wed Jan 31, 2007 5:18 pm    Post subject:
 
Chris,

Your existing server sounds like a good spec to start the project with, it should be able to cope with pretty decent amounts of growth before we'd need to unleash the beast that is the setup I suggested if the project really took off.

Yes it'd be possible to migrate to a higher end solution if needs be

Thanks,

Andrew

_________________
| Andrew Bassett
| Managing Director, NetHosted Ltd.
| Resellers, take a look at overselling !
| Members, tell us what you think  of NetHosted!
Back to top
View user's profile Send private message
ChrisR Reply with quote
 NetHosted Customer

 

 Joined: 29 Aug 2006
 Posts: 4
 

PostPosted: Wed Jan 31, 2007 5:39 pm    Post subject:
 
Quote:

Your existing server sounds like a good spec to start the project with, it should be able to cope with pretty decent amounts of growth before we'd need to unleash the beast that is the setup I suggested if the project really took off.


Thats very promising then

I'm raising questions with various gurus as we speak and I'll get back to you asap.

Thanks

Chris
Back to top
View user's profile Send private message
Post new topic   Reply to topic    NetHosted Community Index -> FTP/SQL Support
Page 1 of 1

User Permissions
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum

 
Jump to: