OpenRepeater / scripts

Misc scripts live here like system build scripts. This is a Work-In-Progress...
5 stars 9 forks source link

Tune php-fpm pool #6

Closed mathewpeterson closed 8 years ago

mathewpeterson commented 9 years ago

Currently on the beta image, there are ~200 php5-cgi processes that get spawned on boot.

mathewpeterson commented 9 years ago

It looks like this comes from the lighttpd config: https://github.com/OpenRepeater/scripts/blob/master/repeater_build.sh#L151

RichNeese commented 9 years ago

No I wrote the config it should only be spawning 4 processed

r.e.neese On Aug 28, 2015 23:44, "Mathew Peterson" notifications@github.com wrote:

It looks like this comes from the lighttpd config.

— Reply to this email directly or view it on GitHub https://github.com/OpenRepeater/scripts/issues/6#issuecomment-135940932.

mathewpeterson commented 9 years ago

I linked to the line of the Lighttpd config where it spawns 5 main and 40 sub processes for a total of 200.

Currently there seems to be a divergence between the two build scripts (e.g. one uses nginx and the other uses lighttpd) so I'm sure this will get reconciled soon. I just wanted to flag this since we are running on low resource machines.

RichNeese commented 9 years ago

I have not had time to rewrite the install scipt that builds from source. As I have been more focused on pkg based installs. And trying to get the prevail imgs for boards done. Having moved as 2 issues at hand I only have the pi2 to work with. So been working on trying to get raspbian up to par and working only to find driver conflicts with on board usb nic and usb sound cards.

There is a raspbian Jessie img on the repo server. And it's a no X img . And I have a install script for it to push up .

When I get home tomorrow I will work on pushing it up and the image I have based on it with my new she'll menu.

And it should work with our new board when we have one to test. .

Raspbian does not officially support Jessie yet. They say it's going to be c a little longer On Aug 29, 2015 10:35 AM, "Mathew Peterson" notifications@github.com wrote:

I linked to the line of the Lighttpd config where it spawns 5 main and 40 sub processes for a total of 200.

Currently there seems to be a divergence between the two build scripts (e.g. one uses nginx and the other uses lighttpd) so I'm sure this will get reconciled soon. I just wanted to flag this since we are running on low resource machines.

— Reply to this email directly or view it on GitHub https://github.com/OpenRepeater/scripts/issues/6#issuecomment-136001290.

RichNeese commented 9 years ago

I will work on running the php more. And yes moved over to nginx as I know it better then lighttpd. So with building a install script I can support and maintain it was easier On Aug 29, 2015 10:48 AM, "Richard Neese" r.neese@gmail.com wrote:

I have not had time to rewrite the install scipt that builds from source. As I have been more focused on pkg based installs. And trying to get the prevail imgs for boards done. Having moved as 2 issues at hand I only have the pi2 to work with. So been working on trying to get raspbian up to par and working only to find driver conflicts with on board usb nic and usb sound cards.

There is a raspbian Jessie img on the repo server. And it's a no X img . And I have a install script for it to push up .

When I get home tomorrow I will work on pushing it up and the image I have based on it with my new she'll menu.

And it should work with our new board when we have one to test. .

Raspbian does not officially support Jessie yet. They say it's going to be c a little longer On Aug 29, 2015 10:35 AM, "Mathew Peterson" notifications@github.com wrote:

I linked to the line of the Lighttpd config where it spawns 5 main and 40 sub processes for a total of 200.

Currently there seems to be a divergence between the two build scripts (e.g. one uses nginx and the other uses lighttpd) so I'm sure this will get reconciled soon. I just wanted to flag this since we are running on low resource machines.

— Reply to this email directly or view it on GitHub https://github.com/OpenRepeater/scripts/issues/6#issuecomment-136001290 .

mathewpeterson commented 9 years ago

Fair enough. I have a pi 1 b so let me know if there's anything I can do to help.

mathewpeterson commented 9 years ago

I have the original Raspberry Pi B model.

Just an FYI, you posted your number to a publicly visible page.

RichNeese commented 9 years ago

I thought u emailed me directly. O well. 700 256 model then right. On Aug 29, 2015 11:15 AM, "Mathew Peterson" notifications@github.com wrote:

I have the original Raspberry Pi B model.

Just an FYI, you posted your number to a publicly visible page.

— Reply to this email directly or view it on GitHub https://github.com/OpenRepeater/scripts/issues/6#issuecomment-136006507.

mathewpeterson commented 9 years ago

I believe it has 512mb of RAM.

Let's take this conversation to email and go from there.

RichNeese commented 9 years ago

Ok it looks like my tuning for php fell out of the install script. When I get home I will return the php and put it in the script.. I do tune down nginx to 4 processes. On Aug 29, 2015 11:17 AM, "Richard Neese" r.neese@gmail.com wrote:

I thought u emailed me directly. O well. 700 256 model then right. On Aug 29, 2015 11:15 AM, "Mathew Peterson" notifications@github.com wrote:

I have the original Raspberry Pi B model.

Just an FYI, you posted your number to a publicly visible page.

— Reply to this email directly or view it on GitHub https://github.com/OpenRepeater/scripts/issues/6#issuecomment-136006507 .

RichNeese commented 9 years ago

Email me direct On Aug 29, 2015 11:19 AM, "Richard Neese" r.neese@gmail.com wrote:

Ok it looks like my tuning for php fell out of the install script. When I get home I will return the php and put it in the script.. I do tune down nginx to 4 processes. On Aug 29, 2015 11:17 AM, "Richard Neese" r.neese@gmail.com wrote:

I thought u emailed me directly. O well. 700 256 model then right. On Aug 29, 2015 11:15 AM, "Mathew Peterson" notifications@github.com wrote:

I have the original Raspberry Pi B model.

Just an FYI, you posted your number to a publicly visible page.

— Reply to this email directly or view it on GitHub https://github.com/OpenRepeater/scripts/issues/6#issuecomment-136006507 .

RichNeese commented 9 years ago

The build from src install my sql no mm longer used we moved to sqlite On Aug 29, 2015 11:20 AM, "Richard Neese" r.neese@gmail.com wrote:

Email me direct On Aug 29, 2015 11:19 AM, "Richard Neese" r.neese@gmail.com wrote:

Ok it looks like my tuning for php fell out of the install script. When I get home I will return the php and put it in the script.. I do tune down nginx to 4 processes. On Aug 29, 2015 11:17 AM, "Richard Neese" r.neese@gmail.com wrote:

I thought u emailed me directly. O well. 700 256 model then right. On Aug 29, 2015 11:15 AM, "Mathew Peterson" notifications@github.com wrote:

I have the original Raspberry Pi B model.

Just an FYI, you posted your number to a publicly visible page.

— Reply to this email directly or view it on GitHub https://github.com/OpenRepeater/scripts/issues/6#issuecomment-136006507 .

RichNeese commented 9 years ago

Have u tried the pkg based install ? On Aug 29, 2015 11:26 AM, "Richard Neese" r.neese@gmail.com wrote:

The build from src install my sql no mm longer used we moved to sqlite On Aug 29, 2015 11:20 AM, "Richard Neese" r.neese@gmail.com wrote:

Email me direct On Aug 29, 2015 11:19 AM, "Richard Neese" r.neese@gmail.com wrote:

Ok it looks like my tuning for php fell out of the install script. When I get home I will return the php and put it in the script.. I do tune down nginx to 4 processes. On Aug 29, 2015 11:17 AM, "Richard Neese" r.neese@gmail.com wrote:

I thought u emailed me directly. O well. 700 256 model then right. On Aug 29, 2015 11:15 AM, "Mathew Peterson" notifications@github.com wrote:

I have the original Raspberry Pi B model.

Just an FYI, you posted your number to a publicly visible page.

— Reply to this email directly or view it on GitHub https://github.com/OpenRepeater/scripts/issues/6#issuecomment-136006507 .