Tiny Core Linux

Tiny Core Base => TCB Talk => Topic started by: willowdan on December 04, 2012, 08:52:30 PM

Title: How reliable ...
Post by: willowdan on December 04, 2012, 08:52:30 PM
Hi to all,

I successfully made a Db server(PostgreSQL), webserver(XAMPP w/o MySQL) in one VirtualBox-installed Microcore and I'm happy about it. It's fast and serving its purpose at 512Mb RAM in my development machine.

I plan to make this Microcore-VBox to be my installer for the offline version of my Yii/PHP-based software. I wonder how reliable Microcore really is once I've installed it to each of my customers' laptop as offline application. What about making Microcore as a dedicated server within the LAN for my Yii/PHP-based application?

Many thanks and cheers!
Title: Re: How reliable ...
Post by: Rich on December 04, 2012, 10:08:20 PM
Hi willowdan
Quote
I wonder how reliable Microcore really is once I've installed it to each of my customers' laptop as offline application.
That's a pretty broad and vague question. I don't know if this provides any insight to your question, but the machine
I'm writing from has not been rebooted in 27 days. I've had machines run for over 4 months without a reboot.
Title: Re: How reliable ...
Post by: willowdan on December 04, 2012, 10:59:53 PM
Hi Rich,

Thanks, that kind of assurance is really the one I'm expecting.

But that's for a standalone setup, have you or anyone else made Core as a real webserver, db server installed in a separate machine as a server, just like we usually do with RedHat, CentOS or Debian which we only access using terminal via SSH?

Many thanks and cheers!
Title: Re: How reliable ...
Post by: Lee on December 05, 2012, 12:53:41 AM
I've had core 4.x running on a couple of different headless servers - running a web server and ftp server for months at a time with no problems.  Neither machine was ever under any kind of heavy traffic load nor doing anything complex, but they've never had any problems at all.

A third server has been running samba for 204 days w/o a reboot.  That one takes a little abuse as I let my kids play those nasty online flash games on it, so I guess the fact that it still works means its robust.  :)

All of them are running openssh.

I'll be updating all of them to 4.7.1 "real soon now" (unless 4.8 comes along before I get around to it) so they'll get rebooted then.
Title: Re: How reliable ...
Post by: willowdan on December 05, 2012, 07:49:19 AM
Great Lee!

Appreciate that post, which gives me confidence and clearer picture about a home-setup. Now, how about a headless Core that functions as web server, db server, app server in one machine that's being accessed by at least 20 to 50 simultaneous users? This is the actual scenario I'll have when I deploy my app later on. Can Core handle such abuse?

I'm asking this because I want to avoid using heavyweight distros such as CentOS, Debian or Ubuntu as headless server, mainly due to their size.

But please if anyone has to correct me about this belief, let me know if I rather have to trust the heavyweights when such requirements are present.

One post I just read is to use SliTaz, but if Core can do it as a reliable and robust headless server, why use SliTaz.

Many thanks and cheers!
Title: Re: How reliable ...
Post by: Rich on December 05, 2012, 08:22:18 AM
Hi willowdan
Here are some results for Tinycore running Apache:
http://forum.tinycorelinux.net/index.php/topic,2668.msg13619.html#msg13619
Title: Re: How reliable ...
Post by: bmarkus on December 05, 2012, 08:28:20 AM
Hm... Speed (performance) and realibility are two different things. BTW, what realibility means in this case?
Title: Re: How reliable ...
Post by: Rich on December 05, 2012, 08:43:14 AM
Hi bmarkus
Yes, that's true. But since he ask about 20 to 50 users I thought he might find some performance numbers interesting.

@willowdan:
Reliability is a function of the hardware, kernel, applications, and how those applications are configured.
The kernel is mature, robust, and reliable. It is what all the distros run on, heavyweight or lightweight.
Title: Re: How reliable ...
Post by: curaga on December 05, 2012, 09:05:01 AM
Core should have no issues handling a similar load to any heavier distro. It's the same software afterall.

The only thing you have to be careful about is to remember to make a swap partition. As Core runs in RAM, swap may be needed before a traditional distro would.


On the other hand, I would not recommend Core for a normal internet-facing server setup, purely because we're a smaller distro without a dedicated security team. For those kinds of setups you'd be better off paying for RHEL.
Title: Re: How reliable ...
Post by: willowdan on December 05, 2012, 09:33:16 AM
Hi Rich, bmarkus and curaga!

Appreciate your thoughts on this.

True, reliability is the function of those mentioned. And thanks for pointing out security once the setup includes internet exposure. However, the setup will not include internet exposure, purely LAN. What I would like to be cleared about is if all the following are the same: hardware, kernel, applications, and how those applications are configured, how does Core perform compared to the heavyweights as CentOS/RHEL, Debian, Slackware, etc.? Has someone tested such setup of at most 50 concurrent access?

Many thanks and cheers!
Title: Re: How reliable ...
Post by: willowdan on December 05, 2012, 09:36:39 AM
@curaga: How much SWAP is suggested for this setup? How much RAM?

Cheers!
Title: Re: How reliable ...
Post by: tinypoodle on December 05, 2012, 10:01:16 AM
Hi Rich, bmarkus and curaga!

Appreciate your thoughts on this.

True, reliability is the function of those mentioned. And thanks for pointing out security once the setup includes internet exposure. However, the setup will not include internet exposure, purely LAN. What I would like to be cleared about is if all the following are the same: hardware, kernel, applications, and how those applications are configured, how does Core perform compared to the heavyweights as CentOS/RHEL, Debian, Slackware, etc.? Has someone tested such setup of at most 50 concurrent access?

Many thanks and cheers!

Depends very much on hardware specs and core mode used.
e.g. if you have plenty of RAM in order for swap never to be touched, I'd doubt any other system could easily beat core running in copy-mode.
Title: Re: How reliable ...
Post by: tinypoodle on December 05, 2012, 10:06:58 AM
@curaga: How much SWAP is suggested for this setup? How much RAM?

Cheers!

You could create and swapon further swapfiles at any moment if you see you mem getting tight.
Title: Re: How reliable ...
Post by: curaga on December 05, 2012, 10:50:36 AM
@curaga: How much SWAP is suggested for this setup? How much RAM?

Cheers!

You'll need to benchmark that with your setup. Run it in a VM while watching memory, increase the user count.
Title: Re: How reliable ...
Post by: willowdan on December 05, 2012, 08:05:57 PM
Thanks tinypoodle and curaga.

I guess, what you're saying is Core can do what the heavyweights can do, but not necessarily do things better.

Let me know if that will be a correct interpretation.

Many thanks and cheers!
Title: Re: How reliable ...
Post by: gerald_clark on December 05, 2012, 10:10:02 PM
Core is a toolbox, and the repo contains the tools.
With these you can build a system that contains ONLY what you need for your project, unlike other distros that start out with a bunch of stuff you don't need.
Title: Re: How reliable ...
Post by: willowdan on December 06, 2012, 12:49:15 AM
Hi gerald_clark,

Appreciate your message.

After reading all posts in this thread, I'm now having the confidence of using Core as web app, Apache, PostgreSQL (headless)server deployed within a LAN of up to 50 clients accessing simultaneously, as an alternative to CentOS. That's of course with the suggested significant amount of RAM.

Many thanks and cheers!
Title: Re: How reliable ...
Post by: tinypoodle on December 06, 2012, 03:14:02 PM
According to theory, swapping out from tmpfs should be significantly faster than any block device filesystem (and the speed of underlying filesystem is irrelevant wrt swap files).
Title: Re: How reliable ...
Post by: willowdan on December 08, 2012, 07:37:34 PM
Great, thanks for that view tinypoodle.

Cheers!