Latest Server related questions

Score: 0
Scool avatar
minimise tcp/ip timeout with haproxy failover
in flag

I have a 3 node cluster setup with haproxy/apache/nginx/php/galeramariadb.

I am searching a way to minimise my tcp/ip timeout between cluster failover. Currently my domain hosted on this 3node cluster has an A record with 3 ip addresses.

If i loose a node, few seconds required for detecting this timeout and for the browser to pickup another ip address

i am searching how to minimise this few seconds dow ...

Score: 0
Buildermine avatar
Allow only one ip to connect to squid server
eg flag

I'm trying to allow only one ip to connect to the squid server but it seems it's not working I did ban all domains and allow only one domain but for the ip address it's not working here what I have done:

http_access allow localhost manager
http_access deny manager

# We strongly recommend the following be uncommented to protect innocent
# web applications running on the proxy server who think the o ...
Score: 1
finding irqs of gVNIC rx queues
cn flag

I run n2d-standard-16 server on GCE with ubuntu 21.10 and gVnic driver enabled. I have a hard time understanding what interrupts are responsible for rx queues and how many Rx queues it has.

On the one hand:

>ls /sys/class/net/ens4/device/msi_irqs/
30  31  32  33  34  35  36  37  38  39  40  41  42  43  44  45  46

so it's 16.

On another hand:

ls /sys/class/net/ens4/queues/
rx-0  rx-1  rx-2  rx-3   ...
Score: 1
How to properly implement DHCPv6-PD to downstream router with Linux?
sa flag

I am trying to configure a DIY Linux based IPv6 router / firewall to do the following:

  • Obtain a /56 prefix from the ISP on interface "wan0"
  • Provide /64 addresses to hosts on "lan1"
  • Provide /60 subnet to a downstream router on "lan2"

My initial choice of software to do this was systemd-networkd, with which the first two items were easy, but the third one is not supported (apparently, please correct  ...

Score: 2
ChimpyMonk75 avatar
MYSQL is at 197% CPU usage ~ not allowing site to run
cn flag

Spec: 8 GB memory / 4 vCPUs / 25 GB ssd

Ubuntu 20.04

My website got hit with a DDoS recently and had this continuous high CPU usage error for 4 days and the site will not load up, I take a look using top -c and it showed 200% CPU usage. I tried SQL tuner but I did not see any significant differences and my site is not able to load up

MySQL Tuner:

 >>  MySQLTuner 1.8.5 - Major Hayden <maj ...
Score: 0
Thwade avatar
MySQL errors after reinstalling
in flag

At first, I wanted to reinstall MySQL to repair ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) problem with command apt-get purge mysql-server, apt-get purge mysql-client etc. and manually removing folders like /var/lib/mysql/, /etc/mysql/ etc.

While installing fresh MySQL package with apt-get install mysql-server, I ran into this:

Preparing to u ...
Score: 0
Lili avatar
Linux virtual machine in VMware15 cannot use custom DNS?
cn flag

The virtual linuxmint system in VMware 15 cannot resolve the domain name using 8.8.8.8, but the domain name can be resolved normally by setting the DNS to be the same as the gateway IP. In the virtual windows server 2012 system, you can use 8.8.8.8 to resolve the domain name. It seems that virtual linux is not working. The DNS of the virtual linux system must be set to be the same as the gateway IP to r ...

Score: 0
iPXE doesn't netboot correctly
us flag

iPXE gets the IP address from the dhcp server, it also gets the syslinux.EFI file using TFTP, but after doing so it does nothing like in the screenshot enter image description here

The first note is that I use VirtualBox machines first one is the ibe that should network boot and the second is a server that should allow the network boot. The second is that the server has Ubuntu operating system. I use the TFTP server, DHCP server, a ...

Score: 0
Apache2 writes to /dev/stdout instead of /var/log/apache2/access.log (using docker)?
cl flag

I am running apache2 2.4.10 in a debian docker container using below docker-compose file:

version: '3.8'
services:
  apache2-php:
    container_name: apache2-php-container
    image: apache2-php-image
    build:
      context: ./docker/apache2
    ports:
      - "8082:80"
    volumes:
      - ./docker/apache2/index.php:/var/www/index.php
 

with this site.

<VirtualHost *:80>
    ServerAdmin  ...
Score: 0
Is there a way to add a comment to a DHCP dynamic simple queue?
ng flag

I simply want to add a comment (specifically, add the host name) to the simple queues created by the DHCP rate limit option.

However, while scripting, when I tried the command

/queue simple set dhcp-ds<XX:XX:XX:XX:XX:XX> comment="hello"

I was met with the error

failure: cannot change dynamic

Is there another way?

Score: 0
Getting a "403 access denied" after following tutorial
in flag

I followed the tutorial located here, Everything seemed to go as the tutorial said it would - except now I'm getting a 403 Forbidden error. I have nginx, gunicorn and django all installed. The nginx just gives me the following error:

2021/11/13 07:16:37 [error] 59#59: *3 directory index of "/var/www/html/" is forbidden, client: 172.17.0.1, server: _, request: "GET / HTTP/1.1", host: "SERVER-IP:80"

 ...
Score: 1
Milad Jahandideh avatar
OVN Cluster Health Command
ng flag

Is there any command-line tool for the OVN Cluster Health check? Or each of its components? and a command or commands which gives stats about the cluster.

For example, without a functional test, I want to know if everything works properly in our OVN Cluster which has deployed with Kolla-Ansible.

All OVSDBs and OVN-NB-DBs and OVN-SB-DBs are healthy or not?, all Daemons are healthy or not?

Score: 1
nginx 502 error for api call from application but working in postman and curl request
ht flag

Environment:

  • Laravel Version: 5.8.29
  • PHP Version $ php --version: PHP 7.2.24 (cli)
  • NGINX Version $ nginx -v: nginx version: nginx/1.14.0 (Ubuntu)

Problem Statement:

Everything works fine, except for one particular API where I include in the header some token (typical bearer token) and it's returning a 502 error from Chrome (in the network tab)

However, when I try to call this from Postman or using

Score: 0
ThomasHunter avatar
File system to maximize utilizable space on a drive
in flag

I'm trying to fit as many 108 GB files on a 16 TB as possible. If I format the drive for ext4 with default options I can fit 138 files on it.

But if I do

mkfs.ext4 -m 0 -T largefile4 /dev/xxx

146 files will fit on.

What file system and options can I use to maximize the utilizable space? It is for read only access and all the files have the same size of 108 GB.

The Stunning Power of Questions

Much of an executive’s workday is spent asking others for information—requesting status updates from a team leader, for example, or questioning a counterpart in a tense negotiation. Yet unlike professionals such as litigators, journalists, and doctors, who are taught how to ask questions as an essential part of their training, few executives think of questioning as a skill that can be honed—or consider how their own answers to questions could make conversations more productive.

That’s a missed opportunity. Questioning is a uniquely powerful tool for unlocking value in organizations: It spurs learning and the exchange of ideas, it fuels innovation and performance improvement, it builds rapport and trust among team members. And it can mitigate business risk by uncovering unforeseen pitfalls and hazards.

For some people, questioning comes easily. Their natural inquisitiveness, emotional intelligence, and ability to read people put the ideal question on the tip of their tongue. But most of us don’t ask enough questions, nor do we pose our inquiries in an optimal way.

The good news is that by asking questions, we naturally improve our emotional intelligence, which in turn makes us better questioners—a virtuous cycle. In this article, we draw on insights from behavioral science research to explore how the way we frame questions and choose to answer our counterparts can influence the outcome of conversations. We offer guidance for choosing the best type, tone, sequence, and framing of questions and for deciding what and how much information to share to reap the most benefit from our interactions, not just for ourselves but for our organizations.