M
M
MrBobo2015-08-03 14:46:12
JavaScript
MrBobo, 2015-08-03 14:46:12

Should I set the number of uWSGI workers to be greater than the number of processor cores?

There are 8 processor cores, 8 workers. At full load on the site, the cpu is used somewhere by 70%.
The question is, is it worth adding another 1-2 workers? Will they use the remaining 30%/?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
A
alex, 2019-01-08
@Sc0undRel

problem in vue. you hang a handler on an element, then below the code the view is initialized and this element is recreated. as a result, the handler is bound to a non-existent element. as a way out, you can try to hang the handler in the mounted hook:

mounted() {
  $(".price-table__select").click(function() {
    alert(1);
    gtag('event', 'Клик', { 'event_category': "Калькулятор цены", 'event_label': document.location.href });
  });
}

D
Dymok, 2019-01-08
@UnluckySerivelha

Does the element exist when .price-table__selectthe script is executed?
If you do it like this?

$(document).ready(function () {
$(".price-table__select").click(function() {
        alert(1);
        gtag('event', 'Клик', { 'event_category': "Калькулятор цены", 'event_label': document.location.href });
    });
});

T
tplus, 2015-08-03
@CafeKiwii

The uWSGI documentation advises choosing this value in a practical way.
uwsgi-docs.readthedocs.org/en/latest/ThingsToKnow.html

V
Vladimir Martyanov, 2015-08-03
@vilgeforce

I see no problem trying.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question