codema.in

Server load

PP Pirate Praveen Public Seen by 76

I think we are hitting the load limits on our server.

diaspora@poddery:~$ free -m
total used free shared buffers cached
Mem: 3965 3816 149 0 4 575
-/+ buffers/cache: 3235 730
Swap: 3355 1256 2099

Stream is loading slow and sometimes nginx gives a page not found message. How do we handle this?

MKT

Manu Krishnan T V Fri 28 Mar 2014 4:01PM

Just did a dd test, to look at whether disk IO is causing issues and it seems fine. 150MB/s is good enough I believe. The result is as below:

poddery@poddery:~$ dd if=/dev/zero of=test bs=64k count=16k conv=fdatasync; rm test
16384+0 records in
16384+0 records out
1073741824 bytes (1.1 GB) copied, 7.13325 s, 151 MB/s

PP

Pirate Praveen Sat 29 Mar 2014 10:25AM

@manukrishnantv that would be a good option. Important point is to sustain quality of service. We can try a reboot and see if it improves the performance.

PP

Pirate Praveen Sun 30 Mar 2014 4:46PM

@manukrishnantv @nandajavarma I think we should move yatra.diasporafoundation.org also to another host as it does not need a vps. Nandaja, can you try to move it to autistici.org or riseup.net hosting?

MKT

Manu Krishnan T V Sun 30 Mar 2014 7:08PM

Moving out wordpress won't be a hard task. @nandajavarma @balasankarchelamat Hope you can do that.

NV

Nandaja Varma Mon 31 Mar 2014 2:14AM

@manukrishnantv @praveenarimbrathod Sure! I will try to move it tonight(will have a better Internet connection, by then).

PP

Pirate Praveen Mon 31 Mar 2014 6:00AM

@manukrishnantv I still feel we should stop new sign ups until we can guarantee a good performance. Otherwise new people joining will have a bad impression of diaspora.

PP

Pirate Praveen Mon 31 Mar 2014 9:08AM

I saw two extra sidekiq processes on the server. I killed them and restarted diaspora. Sign ups are closed now. Once we see good performance for next two days, we can open it again.

PP

Pirate Praveen Mon 31 Mar 2014 9:34AM

seems stable now

$ free -m
total used free shared buffers cached
Mem: 3965 2076 1889 0 42 929
-/+ buffers/cache: 1105 2860
Swap: 3355 140 3215

PP

Pirate Praveen Mon 31 Mar 2014 10:19AM

I have re-enabled sign ups. Load and memory usage is normal so I was tempted to re-open registrations.

MKT

Manu Krishnan T V Sat 5 Apr 2014 4:02AM

The stream now loads faster, but the memory usage has gone to the old state.

poddery@poddery:~$ free -m
total used free shared buffers cached
Mem: 3965 3815 150 0 178 1899
-/+ buffers/cache: 1736 2228
`Swap: 3355 122 3233

Swap usage is not high though.

PP

Pirate Praveen Sun 6 Apr 2014 9:12AM

@manukrishnantv I think memory usage is fine as long as it is not using swap. linux considers free ram as wasted resource so it will use free ram as cache (cache frequently read files etc) . So this is quite normal.

http://www.linuxatemyram.com/ has a nice explanation.

PP

Pirate Praveen Sat 23 Aug 2014 8:08AM

@manukrishnantv can we move smc of fci sites to your vms?

@nandajavarma can we move diaspora yatra to autistici.org?

MKT

Manu Krishnan T V Sat 23 Aug 2014 4:00PM

I have mentioned with few of the SMC community members that my company is willing to sponsor a VM, if required. As things were going without much issues, it seems like the proposal was not discussed. I'll bring this up in the SMC mailing list.

MKT

Manu Krishnan T V Sat 23 Aug 2014 6:15PM

Have sent a mail to the SMC Mailing list, with my offer. Lets see how it goes.

NV

Nandaja Varma Mon 25 Aug 2014 7:45AM

@praveenarimbrathod Yes. I remember applying for it a while back. But could not follow up. Will do that now.

PP

Pirate Praveen Mon 1 Sep 2014 2:59PM

@manukrishnantv let me know when you want to do the migration. I will join you.

PP

Pirate Praveen Sun 28 Sep 2014 4:26PM

@nandajavarma any update on it? Actually we just need a wordpress blog, so you can sign up at noblogs.org (run by autistici) and ask autistici people to provide a dns entry.

MKT

Manu Krishnan T V Sun 28 Sep 2014 6:52PM

Migration of all SMC sites are now complete. What is left is fosscommunity.in and diaspora yatra. Hope to get those sorted out this week itself. Then we could remove all php related stuffs and use the server entirely for poddery.

MKT

Manu Krishnan T V Sat 18 Oct 2014 10:01AM

$ free -m
total used free shared buffers cached
Mem: 3965 3788 177 0 10 1001
-/+ buffers/cache: 2777 1188
Swap: 3355 40 3315

Services last restarted at around 4PM IST (~24 hours ago) Had to restart redis-server, which was running from the time server started. Noticed more than 1/4th of the sidekiq requests fails.

PP

Pirate Praveen Mon 20 Oct 2014 2:12PM

I have reduced number of sidekiq jobs to 20x2 from 25x2 (2 workers), hoping it eases resources.

@manukrishnantv any update on adding more resources?

MKT

Manu Krishnan T V Mon 20 Oct 2014 4:51PM

@praveenarimbrathod No update yet. Bumped the ticket. Let's wait.

MKT

Manu Krishnan T V Mon 20 Oct 2014 6:13PM

$7/month for 2GB and $13.5/month for 4GB additional RAM.

May be I can close the deal at $150 for additional 2GB for the remaining 23 months of service. Not sure though. Do we have the funds?

PP

Pirate Praveen Mon 20 Oct 2014 6:26PM

@anisha @balasankarchelamat how much money do we have?

@manukrishnantv I think we have the funds, can we get the same discount like the main plan? Give the final pricing and aneesh can ask Joe S to make the payment.

MKT

Manu Krishnan T V Wed 22 Oct 2014 10:36AM

$300 for an additional 4GB RAM and 40GB Disk is the deal. We might need to partition the disk again to make use of additional space.

Invoice should be generated by now.

AS

Anish Sheela Sun 26 Oct 2014 7:34AM

@manukrishnantv What's the status?

MKT

Manu Krishnan T V Mon 3 Nov 2014 6:58AM

@anisha The invoice is generated. Hope you have the credentials to Knightswarm panel. Share with @joeb, so that he can make the payment.

Hope someone has the statistics of the funds.

AS

Anish Sheela Mon 3 Nov 2014 8:20AM

I don't have the credentials.

2014-11-03 13:31 GMT+05:30 Manu Krishnan T V (Loomio) :

Manu Krishnan T V mentioned you while discussing "Server load"

@anisha The invoice is generated. Hope you have the credentials to Knightswarm panel. Share with @joeb, so that he can make the payment.

Hope someone has the statistics of the funds.

Reply to this email directly or view it on Loomio ( http://www.loomio.org/d/DhEwz604/server-load?utm_campaign=thread_mailer&utm_medium=email&utm_source=user_mentioned#comment-312363 ).

Unfollow ( http://www.loomio.org/email_actions/unfollow_discussion/14195/yZvyz5s6mZ8WV13a6MMZ ) to stop emails about this discussion.

Change your email preferences ( http://www.loomio.org/email_preferences?unsubscribe_token=yZvyz5s6mZ8WV13a6MMZ&utm_campaign=thread_mailer&utm_medium=email&utm_source=user_mentioned ) to unsubscribe from Loomio emails.

MKT

Manu Krishnan T V Mon 3 Nov 2014 9:36AM

Share your GPG key then. I'll mail it to you.

PP

Pirate Praveen Thu 6 Nov 2014 4:19PM

Just increased concurrent sidekiq connections to 25 as stream was not receiving any new posts and production.log showed unable to get database connection and suggested we increase this number.

MKT

Manu Krishnan T V Mon 10 Nov 2014 2:56PM

@anisha Any update on the VPS upgrade payment?

PP

Pirate Praveen Wed 12 Nov 2014 9:18AM

@manukrishnantv , @anisha says he won't do it. Can you ask kinightswarm to generate another invoice? I'll mail Joe S. Lets renew the DNS also at the same time. Can you generate invoice for that too?

MKT

Manu Krishnan T V Fri 14 Nov 2014 7:29AM

@praveenarimbrathod The invoice is still there in the billing panel. No need to worry about the due date. Please update Joe to make the payment.

PP

Pirate Praveen Fri 14 Nov 2014 1:47PM

@manukrishnantv I have emailed Joe S and requested him to make the payment.

MKT

Manu Krishnan T V Fri 21 Nov 2014 3:57AM

@praveenarimbrathod Any update? We needs funds to renew domain / SSL Cert too.

PP

Pirate Praveen Fri 21 Nov 2014 7:57AM

@manukrishnantv he said he is moving funds to his paypal account. Can you generate invoice for domain/ssl?

MKT

Manu Krishnan T V Mon 24 Nov 2014 7:39AM

@praveenarimbrathod I'll create an account with Gandi using the poddery autistici mail id. I can't login to the Mailmain admin interface. Can you have a look at it?

PP

Pirate Praveen Tue 25 Nov 2014 8:00PM

@manukrishnantv, Joe S has paid the invoice. Do we need any manual steps for the upgrade? I have added list admin password to the password document and shared with you and @balasankarchelamat .

PP

Pirate Praveen Thu 27 Nov 2014 5:57PM

Folks, we just need to restart the server for the upgrade to reflect. @manukrishnantv and I will schedule a downtime soon and do the update.

PP

Pirate Praveen Tue 9 Dec 2014 2:24PM

We are currently performing the upgrade. We'll be back soon, hopefully an hour more.

MKT

Manu Krishnan T V Wed 10 Dec 2014 3:22PM

Had around 8 hours of downtime, creating backups, upgrading the server and setting up the basics for recurring backups.

Now running with 8GB RAM, and signups open again.

Sharing some statistics:
MySQL DB Size: 11GB
Uploaded Assets: 12GB

Hope we finally have a solution to this discussion. Need to setup complete backup and optimize MySQL.