chrome – TLS with load balancer and Web server

We have a apache web server with load balancer and we are planning to upgrade our TLS version from 1.1 to 1.2 due to chrome compatibility issues

Currently load balancer has TLS 1.1 and TLS 1.2 in configuration and web server has TLS 1.1 in configuration.

If we remove TLS 1.1 in load balancer configuration (NOW IT WILL BE RUNNING ON TLS 1.2) and leave the web server with TLS 1.1.Will this cause any issue ,does my web server TLS version should match with load balancer TLS version.

Thanks,
DT

What do you consider appropriate maximum CPU load for PHP-FPM server with hyperthreading on and off?

Hello,

What do you consider appropriate maximum CPU load for PHP-FPM server with hyperthreading on and off?

With hyperthreading off, I… | Read the rest of https://www.webhostingtalk.com/showthread.php?t=1830351&goto=newpost

javascript – Existe a possibilidade de se fazer um Bind do Form de uma janela modal bootstrap sem usar a chamada de load?

Estou usando o ajax para efetuar para fazer uma requisição e abrir uma janela modal bootstrap em seguida. O problema é que quando eu uso o ajax,faço uma requisição para minha controller, e o retorno (conteúdo da modal) eu carrego da seguinte forma:

//carregamento da modal
$('#contentModalFinanceiroParcela').html(data);

//exibição da modal
$('#modalFinanceiroParcela').modal({
    keyboard: true,
}, 'show');

Até aí, tudo perfeito. O problema é que a partir daí, não consigo fazer o bind do form para registrar o evento do submit do mesmo. Na função bindFormFinanceiroParcela, por mais que eu passe o “dialog”, o bind não funciona.

bindFormFinanceiroParcela(document.getElementById("contentModalFinanceiroParcela"));

Pesquisando nos fóruns, descobri que o processo funciona se eu carregar a modal usando o comando “load”, como abaixo, só que eu não posso fazer assim, senão ele fará uma segunda requisição para a controller, pois anteriormente, eu já usei o ajax.

//Dessa maneira funciona, mas nao posso usá-lo.
$('#contentModalFinanceiroParcela').load(url, function () {
    $('#modalFinanceiroParcela').modal({
        keyboard: true
    }, 'show');

    // Inscreve o evento submit
    bindFormFinanceiroParcela(this);

    stopLoadPage();
});

Existe a possibilidade de eu fazer o bind do form sem usar o comando “load” citado no script acima?

SCRIPT ATUAL:

//Criar o bloco da janela modal no body
if (!$("#modalFinanceiroParcela").data('bs.modal'))
    CreateModalFinanceiroParcela();

//load the modal content via ajax request
$('#contentModalFinanceiroParcela').html(data);

$('#modalFinanceiroParcela').modal({
    keyboard: true,
}, 'show');

bindFormFinanceiroParcela(document.getElementById("contentModalFinanceiroParcela"));


function bindFormFinanceiroParcela(dialog) {
    // Inscreve o formulário na janela modal com o evento submit
    $('form', dialog).submit(function (e, i) {
        if ($(this).valid() || i) {
            startLoadOneMoment();
            // Realiza una requisição ajax
            $.ajax({
                url: this.action,
                type: this.method,
                data: $(this).serialize(),
                success: function (result) {
                    // Se a requisição for satisfatória, recarrega a página atual
                    if (result.success) {
                         window.location = window.location;                       
                    } else {
                        $('#contentModalFinanceiroParcela').html(result);
                        bindFormFinanceiroParcela();
                    }
                    stopLoadOneMoment();
                }
            });
            return false;
        } else {
            return false;
        }
    });

proxy – nginx and wordpress – site2.com need to load content of of site1.com/site2 without url change

  • I have 1st domain name site1.com – self-hosted wordpress and contains posts and pages. (everything good, no issue at all)
  • I have 2nd domain name site2.com – nothing hosted (dns pointing to same server as site1.com domain)

I need to configure the nginx server in such a way that, when users access site2.com, they should get the content of site1.com/site2 wordpress page. (Then the others pages links inside that page are fine as site2.com is considered part of site1.com and users can click the load content with site1.com links)

Details

  • I have tried proxy_pass etc but didn’t worked any.
  • site2.com -> site1.com/site2 redirection is working with several techniques but I dont need that as I need site2.com landed with same url on top but site1.com/site2 content.
  • nginx version: nginx/1.14.2
  • OS – Debian GNU/Linux 10 (buster)
  • If there are other ways (non-nginx), still acceptable.

Thanks in advance.

django rest framework – How to Lazy load datatable with client sided processing?

I have a table with 3500 entries and foreign keys.

I’m using client-sided processing datatables with: django-rest-framework and Ajax.

It takes up to 10 seconds to load.

Is there a way to show the first 10 entries (first page results) – for the user not to think that my website is broken, because it’s taking too long – while the rest of the entries loads in the background?

Also looking for optimizations for the load speed.
Thank you for your time.

Reverse Load Balancer: Out Balancer?

Load balancing in is a common topic, but there isn’t as much said about load balancing out. I may have an application that can prepare 1mm requests/s but is unable to send them all out at that speed because of network restraints.

Is there a concept of an out-balancer? Are there any ready-made solutions out there that can take, say, a csv of 1mm requests and distribute them across nodes and send them?

enter image description here

The "Out Balancer Coordinator" could just be a queue. But that’s getting into DIY territory where I’m wondering if something like this already exists.

How can I know the progress when importing data into MySQL using LOAD DATA INFILE?

I have a 1 billion record stored in csv file. I’m using LOAD DATA INFILE to import the record to the table.

create table weibo_bind
(
    column1 bigint
        primary key,
    column2 bigint
);

And my csv file is column1,column2.

LOAD DATA INFILE '/path/to/demo.csv' IGNORE INTO TABLE weibo_bind FIELDS TERMINATED BY ',' LINES TERMINATED BY 'n' IGNORE 1 ROWS;

But how can I debug or how can I check the progress of importing? Because it takes a lot of time to import.

Or is there any way to speed up?

I’m using

mysql Ver 8.0.22, Innodb

gui design – Which button is better when you want to load results from a filter?

Let’ take them one by one and analyze the rationale behind each button label. Keep in mind that they need to be short, clear and inform the user exactly what is going to happen:

Search – most common search button label and a safe option to use in this situation.

Update – Less common and not advisable in my experience. Update button is mostly used when changing a setting or when editing a shopping cart.

Go – Go where? Nope.

Reload – Confusing.. Reloading the page? Reloading the search filters?

Apply – This is the one I would go with. You are basically applying the filters to the results list. I would even go with Apply filters.

Load Results – From my experience, I haven’t seen this label in a while. It sounds antiquated and not UX friendly.

drivers – Ubuntu 18.04.5: cannot load module for Intel Wifi adapter

I’m running an Acer notebook that comes with an Intel WiFi adapter. The included kernel does not support it natively, so I found some separate drivers which are installed via dkms. Unfortunately when calling

modprobe iwlwifi

an error

modprobe: ERROR: could not insert 'iwlwifi': Required key not available

is returned.

I already found a solution to disable scure boot via mokutil, but this does not work for me here – when I do this, loading of the kernel fails at grub boot level and I can’t get into it at all.

So…how can I fix that, how can I get my 18.04.5 working with the Wi-Fi 6 AX200 chip?

Thanks!

linux – Transmission Daemon running under custom user trying to load config from wrong path

I have transmission daemon 2.94 running as a service on a Debian 10 machine.

I changed the user running transmission daemon from default debian-transmission to www-data Apache user, since I want the save files to be readable by Apache and the opposite, Apache files to be readable by transmission.

To do that, I changed to the user setting from the following config files:

  • User=www-data in /lib/systemd/system/transmission-daemon.service
  • USER=www-data in /etc/init.d/transmission-daemon
  • setuid www-data and setgid www-data in /etc/init/transmission-daemon.conf

The transmission JSON config file still resides in /etc/transmission-daemon/settings.json. I made sure both directories /var/lib/transmission-daemon and /etc/transmission-daemon were owned by the new user www-data.

But when I relaunch the service with sudo systemctl start transmission-daemon or sudo service transmission-daemon start, I get the following in the transmission logs:

Couldn't create "/var/www/.config": Permission denied (file-posix.c:189)
Couldn't read "/var/www/.config/transmission-daemon/settings.json": No such file or directory (utils.c:238)
Couldn't save temporary file "/var/www/.config/transmission-daemon/settings.json.tmp.jq3qtN": No such file or directory (variant.c:1285)

…and other similar errors.

So it would seem transmission-daemon is trying to use the www-data user home path and recreate its config directory here.

Why is that and how can I make transmission using the previous default config path? I don’t see any transmission configuration depending on the user home path.

Side question: what is the difference between all those three config files where you set up the user running the service?