Оптимизайка

Оптимизайка
Рейтинг
396
Регистрация
11.03.2012
Интересы
Программирование, информационные технологии, наука

Show your Nginx config, plz

tutochkin:
How to make a "read-only" in configuring Nginx? Nginx now works as a reverse-proxy. Static files given to Nginx, php - Apache2.

By "read-only" users I've mean the sessionless users (i.e. unregistered ones). Most of CMS uses a cookie to distinguish registered users from unregistered ones, so you can use Nginx "out-of-box" caching like this:

https://habrahabr.ru/post/124684/

Unfortunately, MODx uses php session cookie for unregistered users too. So, you have to slightly modify MODx code to add another cookie that will set only for registered users.

1. According to your Apache configuration, the real number of concurrent users are limited by 250 (MaxRequestWorkers). When you run Siege, additional concurrent users are queued, so increasing of this parameter will not help.

2. Even that amount of concurrent users can easily overload of single CPU (without proper caching).

3. So, if you need to serve that large amount of requests, you definitely should use caching for "read-only" users by configuring Nginx.

tutochkin:
i think not is OK, because another site can withstand the load

Does another site use some of caching features? Which CMS/engine/script is used on both sites?

tutochkin:
Нагрузку тестирую siege'ом:
siege -c 350 -t30s

350 concurrent users? 100% CPU load is OK in that case.

Check out http://mega-trek.net/load/igry/adventure/moebius_empire_rising_2014_pc_124_repack_ot_r_g_mekhaniki/9-1-0-12262 for example:


<input type="hidden" name="subaction" value="addcomment" />
<input type="hidden" name="post_id" id="post_id" value="13135" /></form><script src='https://www.google.com/recaptcha/api.js?hl=ru' async defer></script>
<!--dlenavigationcomments-->

<!--noindex--><script type="text/javascript" src="//am15.net/bn.php?s=74525&f=1&d=56585" ></script><!--/noindex-->
<!--noindex--><script type="text/javascript" src="//am15.net/c/74525.js" ></script><!--/noindex--></div>
</div>
</div>
<br> </td>

Why do you use am15.net?

Have you googled about this script?

Have you read this thread?

Apple's response to the WoSign incidents:

In light of these findings, we are taking action to protect users in an upcoming security update. Apple products will no longer trust the WoSign CA Free SSL Certificate G2 intermediate CA.

https://groups.google.com/forum/#!topic/mozilla.dev.security.policy/lWJ1zdUJPLI

Vitaly2012:
Да, вариант с cloudflare мне тоже понравился

https://rkn.gov.ru/news/rsoc/news24880.htm

https://rublacklist.net/13108/

😂

You can try to populate the database with geo coordinates and calculate distances with sql queries (with PostGIS extension, fir example)

Vitaly2012:
Оптимизайка, а где про это почитать?

http://www.noction.com/knowledge-base/multihoming

Всего: 4372