因新项目,开始从Apache上转移到Lighttpd上,同时还有Memcached的大量使用,借此机会把toplee.com的服务器环境也进行一些改造,顺便整理一份文档留存!
更多大型架构的经验,可以看我之前的一篇blog:http://www.toplee.com/blog/71.html
12.31 截至今天完成以下内容:
1. 完成lighttpd的安装配置,并且做了大量的优化;
2. 几乎全部看完了http://trac.lighttpd.net/trac/wiki上的文档;
3. 配置了lighttpd和php的fastcgi支持;
4. 增加了php对XCache的支持;
5. 设置了部分域名在lighttpd上的解析;
6. 完成了Apache通过mod_rewrite和mod_proxy将部分域名以及全部的php访问转到lighttpd上;
7.完成Memcached的环境搭建,并且修改了部分数据库操作缓存到MC上;
效果:
1. 系统负载变低了不少,响应速度得到提升;
2. MC的效果非常理想,数据库压力得到很大减轻。
TODO:
(下面的事情等我买了第二台服务器后进行,目前仅在帮朋友的项目上这么干了)
-. 配置MySQL的Master/Slave模式,把对数据库的Write和Read进行分开
-. 加入squid群进行缓存加速
-. 其他(比如DNS负载均衡加LVS的四层交换…)
To be continued…
一些截图
哈哈,好东东随时关注
强烈关注ing…
Memcached 在 Slackware 上似乎很难编译进 epoll 的支持,老是使用 select/poll 的模式。不知道您的支持 epoll 吗?有时间换 RH 试试。
[Comment ID #10237 Will Be Quoted Here]
目前是直接使用FreeBSD的ports自动安装memcached,忘了make config的时候是否有选项,回头看看
FreeBSD没有epoll,不过有kqueue
配置MySQL的Master/Slave模式,把对数据库的Write和Read进行分开
请问 到时间可以整理一个详细的方案或者配制笔记吗? 我想做几个镜像站 想利用这中模式同步数据库,但担心数据库在同步的过程中会出现问题? 关于这方面不是很清楚,所以不敢冒然操作,期待回复
[Comment ID #17673 Will Be Quoted Here]
空了会考虑弄份详细的资料,不过95%以上的资料都可以在MySQL的在线文档里面得到。
另外,如果您的镜像分布在不同地域,除非有专门的同步带宽,否则网络状况一定会导致很多问题发生。
这介是经验呐~
Every fashionista is crazy about his famous string bikini. string bikini is no doubt the most popular string bikini in this season.
Das Aspire S3-951 akku dell inspiron 1525 verfügbar sein wird in dieser Woche bei Online-und dell latitude d620 akku Einzelhandel in den USA und Kanada.
博主,请教一下,如果是低内存的vps,比如256M,lighttpd怎么优化?
What i do not understood is in truth how you are no longer
really much more smartly-liked than you might be now. You are very intelligent.
You know therefore significantly relating to this subject,
produced me personally consider it from a lot of
various angles. Its like women and men are not interested until it’s something
to accomplish with Woman gaga! Your own stuffs nice.
Always handle it up!
Heya! I just wanted to ask if you ever have any issues with hackers?
My last blog (wordpress) was hacked and I ended up losing a few months of
hard work due to no back up. Do you have any solutions to stop hackers?
Do you have any video of that? I’d like to find out some additional information.
Hi, after reading this awesome piece of writing i am also delighted to share
my knowledge here with colleagues.
It’s a shame you don’t have a donate button! I’d definitely
donate to this fantastic blog! I suppose for now i’ll settle for bookmarking and adding your RSS feed to my Google account.
I look forward to new updates and will share
this site with my Facebook group. Talk soon!
Undeniably imagine that which you said. Your favourite reason appeared to be at the web the simplest factor to be aware of.
I say to you, I definitely get irked while folks think
about issues that they plainly do not understand about.
You controlled to hit the nail upon the top and also defined out the whole thing with no need side effect
, folks could take a signal. Will likely be again to get
more. Thank you
Hello there! This post couldn’t be written any better!
Looking at this article reminds me of my previous roommate!
He always kept talking about this. I most certainly will send
this information to him. Fairly certain he’ll have a great read.
Thank you for sharing!
I do agree with all the ideas you have offered in your post.
They are really convincing and will definitely work.
Nonetheless, the posts are too short for beginners. Could you please lengthen them
a bit from next time? Thanks for the post.
Someone necessarily assist to make seriously
posts I would state. That is the first time I frequented your web page
and thus far? I amazed with the analysis you made to make this actual post amazing.
Fantastic job!
Hello! Do you use Twitter? I’d like to follow you if that would be okay.
I’m absolutely enjoying your blog and look forward to new posts.
Have you ever thought about including a little bit more than just your articles?
I mean, what you say is important and everything. However just imagine
if you added some great images or videos to give your posts more, “pop”!
Your content is excellent but with images and video clips,
this site could certainly be one of the most beneficial in its field.
Wonderful blog!
This paragraph is actually a pleasant one it assists
new internet visitors, who are wishing for blogging.
At this time it seems like WordPress is the preferred blogging platform available right now.
(from what I’ve read) Is that what you’re using on your blog?
It’s really a nice and helpful piece of info.
I’m satisfied that you shared this useful info with
us. Please keep us up to date like this. Thank you for sharing.
It’s amazing to pay a quick visit this web site and
reading the views of all friends about this article,
while I am also eager of getting know-how.
Heya i am for the first time here. I came across
this board and I find It really useful & it helped me out a lot.
I hope to give something back and help others like you helped me.
Undeniably consider that which you said. Your favourite justification appeared to be
on the internet the easiest thing to remember of. I say to you, I certainly get annoyed while other people
think about concerns that they just do not recognize about.
You controlled to hit the nail upon the top and also outlined out the whole thing without having side effect , other
folks could take a signal. Will probably be back to get more.
Thank you
Thanks for finally writing about >面向高负载的架构Lighttpd+PHP(FastCGI)+Memcached+Squid | 李俊麟的平凡生活 <Liked it!
Good replies in return of this question with solid arguments and describing everything regarding that.
you are actually a excellent webmaster. The site loading speed
is amazing. It kind of feels that you are doing any distinctive trick.
Furthermore, The contents are masterpiece. you’ve
performed a great activity in this matter!
Hi there to every body, it’s my first go to see of this webpage; this
web site consists of amazing and in fact fine information for
visitors.
Excellent site you have here but I was curious about if you knew of any community forums that cover the same topics talked about
in this article? I’d really like to be a part of group where I can get responses from other experienced people
that share the same interest. If you have any recommendations,
please let me know. Many thanks!
Hi there, I read your blogs daily. Your humoristic style is
awesome, keep doing what you’re doing!
This article offers clear idea for the new visitors of blogging,
that truly how to do blogging and site-building.
whoah this blog is excellent i really like reading your articles.
Stay up the great work! You recognize, a lot of individuals are looking round
for this info, you could aid them greatly.
Hi there! I know this is kinda off topic but I was wondering if you knew where I could get a captcha plugin for
my comment form? I’m using the same blog platform as yours and I’m having trouble finding one?
Thanks a lot!
I love reading through an article that will make men and women think.
Also, thanks for allowing me to comment!
Piece of writing writing is also a fun, if you know after that you
can write if not it is complicated to write.
This information is invaluable. How can I find out more?
Thanks for sharing your thoughts on gamefly. Regards
Hi, after reading this amazing piece of writing i am as well happy to
share my know-how here with friends.
Hello just wanted to give you a brief heads up and let you know a
few of the images aren’t loading properly. I’m not sure why but I think its a linking issue.
I’ve tried it in two different web browsers and both show the same outcome.
My partner and I stumbled over here by a different web address and
thought I may as well check things out. I like what I see so now i’m following
you. Look forward to going over your web page yet again.
Pretty great post. I simply stumbled upon your weblog
and wished to mention that I have really loved surfing around your weblog posts.
After all I will be subscribing on your feed and I hope
you write once more very soon!
Have you ever thought about writing an e-book or guest authoring on other sites?
I have a blog centered on the same ideas you discuss and would really like to have you share some
stories/information. I know my readers would appreciate your work.
If you are even remotely interested, feel free to shoot me
an e mail.
I’ll immediately take hold of your rss feed as I can not to find your email subscription link or e-newsletter
service. Do you have any? Kindly allow me realize in order that I may subscribe.
Thanks.
Great post. I was checking constantly this blog and I am impressed!
Very helpful information particularly the last part 🙂 I care for such
info a lot. I was looking for this particular information for a long time.
Thank you and good luck.
Thanks for one’s marvelous posting! I really enjoyed reading it, you’re a great author.I will always bookmark your blog and will often come back very soon. I want to encourage that you
continue your great job, have a nice holiday weekend!
Hey I know this is off topic but I was wondering if you knew
of any widgets I could add to my blog that automatically tweet my newest twitter
updates. I’ve been looking for a plug-in like
this for quite some time and was hoping maybe you would have some experience with something like this.
Please let me know if you run into anything. I truly enjoy reading your blog and I look forward to
your new updates.
You’ve made some decent points there. I looked on the net for more information about the issue and found
most individuals will go along with your views on this site.
These are in fact fantastic ideas in about blogging. You have
touched some pleasant points here. Any way keep up wrinting.
I was able to find good information from your blog posts.
Hello, this weekend is good in support of me, because this point in time
i am reading this enormous educational post here at my residence.
You’re so interesting! I don’t believe I’ve read through a single thing
like this before. So nice to discover another person with a few genuine thoughts
on this issue. Seriously.. many thanks for starting this up.
This web site is one thing that is required on the internet, someone
with some originality!
Thanks for another informative web site. Where else may just I
get that kind of information written in such an ideal approach?
I’ve a venture that I am just now running on, and I have been at the look
out for such info.
Wonderful blog! I found it while searching on Yahoo News.
Do you have any tips on how to get listed in Yahoo News?
I’ve been trying for a while but I never seem to
get there! Appreciate it
Everything is very open with a very clear explanation of the issues.
It was really informative. Your website is extremely helpful.
Thanks for sharing!
Hey there, You have performed a great job. I
will certainly digg it and in my opinion suggest to my
friends. I’m confident they will be benefited from this website.
You made some really good points there. I looked on the net for more info about the issue and found most individuals will go
along with your views on this website.
Regards! Awesome information!
cheap viagra
viagra sales by country – https://www.viagraonlinebuymsn.com/
viagra under the tongue
young person taking viagra Kennethboamn 442241c
I am regular visitor, how are you everybody? This article posted at this site is genuinely nice.
Hi, I would like to subscribe for this website to take newest updates, thus where can i do it please assist.
Appreciate this post. Will try it out.
Hello There. I found your blog using msn. This is an extremely well written article.
I will be sure to bookmark it and come back to read more of your useful info.
Thanks for the post. I will definitely comeback.
Hey! This is my first visit to your blog! We are a collection of volunteers and starting
a new project in a community in the same niche. Your blog provided us useful information to work on. You have done a wonderful job!
Unquestionably imagine that that you said.
Your favourite reason appeared to be on the web the simplest factor to take
note of. I say to you, I definitely get irked even as
other people think about issues that they plainly do not recognize about.
You managed to hit the nail upon the top and also outlined out the whole thing
with no need side effect , other people could take a signal.
Will probably be again to get more. Thanks
Your mode of describing everything in this post
is really nice, every one be capable of easily understand it,
Thanks a lot.
What i do not understood is if truth be told how you are not really
a lot more neatly-appreciated than you might be right now.
You are so intelligent. You already know
therefore considerably in relation to this subject, made me for my part consider it from
numerous numerous angles. Its like men and women are not fascinated except it is one thing to do with Woman gaga!
Your own stuffs great. Always care for it up!
Thanks in favor of sharing such a fastidious thought, piece
of writing is good, thats why i have read it fully
Right away I am going away to do my breakfast, after having my breakfast coming yet again to read more news.
You’ve made some good points there. I checked on the web to learn more about the issue and
found most people will go along with your views on this web site.
Hey there just wanted to give you a quick heads up.
The words in your post seem to be running off the screen in Ie.
I’m not sure if this is a format issue or something to do
with web browser compatibility but I figured I’d post to let you know.
The layout look great though! Hope you get the problem
fixed soon. Many thanks
Hey there! This is my first comment here so I just wanted to give a quick shout out and
say I truly enjoy reading through your articles. Can you suggest any other blogs/websites/forums
that go over the same subjects? Thanks for your time!
What’s up colleagues, its enormous piece of writing on the topic of
educationand completely explained, keep it up all the time.
Hey, I think your website might be having browser
compatibility issues. When I look at your blog site in Ie,
it looks fine but when opening in Internet Explorer, it has some overlapping.
I just wanted to give you a quick heads up! Other then that, terrific blog!
It’s perfect time to make some plans for the future
and it is time to be happy. I’ve read this post and
if I could I want to suggest you some interesting things or suggestions.
Maybe you can write next articles referring to this article.
I wish to read even more things about it!
This article is in fact a good one it helps new net visitors, who are
wishing for blogging.
Way cool! Some extremely valid points! I appreciate you penning this post plus the rest
of the website is very good.