Answer the question
In order to leave comments, you need to log in
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
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 });
});
}
Does the element exist when .price-table__select
the 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 });
});
});
The uWSGI documentation advises choosing this value in a practical way.
uwsgi-docs.readthedocs.org/en/latest/ThingsToKnow.html
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question