Latest Server related questions

Score: 0
Abe avatar
Module ngx_http_realip_module and how to set_real_ip_from
de flag
Abe

I have a very basic question about Module ngx_http_realip_module. I checked the documentation and I saw this example:

set_real_ip_from  192.168.1.0/24;
set_real_ip_from  192.168.2.1;
set_real_ip_from  2001:0db8::/32;
real_ip_header    X-Forwarded-For;
real_ip_recursive on;

I also understand that these are:

real_ip_header X-Forwarded-For;
real_ip_recursive on;
set_real_ip_from <your VPC IPV4 CIDR her ...
Score: -2
Packets sent in IPv4
cn flag

I'm just trying to understnd how packets work. So if i hypothetically had a image of a size of 1mb which is 1,000,000 bytes and the maximum packet size for a IPv4 packet is 65,536 bytes does that mean that optimally there would be only 16 packets sent? Sorry if this a dumb question i'm just doing a presentation for school and would like to know as much as possible.

Score: 0
Force new process to use the specific network interface (using netns/network namespaces)
cn flag

I have a number of interfaces available on Ubuntu 20.04 machine. Among others enx0c5b8f279a64 and usb0 with the later being used as the default one. I want to make sure that a particular process started in terminal will use only one of these interfaces (say enx0c5b8f279a64 even if the other interface is default). If this process is started and the selected enx0c5b8f279a64 inteface is down, it sh ...

Score: 2
pepoluan avatar
CouchDB replication tanks performance
tr flag

We have an API implemented in Tornado using CouchDB as it's backend.

Usually, queries to CouchDB finishes in less than 50ms.

But lately, queries takes up to 250ms, sometimes more. After some New Year's Day troubleshooting, we figured out that replication tanks performance so much, we disabled it, and performance rose again.

Last night around midnight (UTC+7) we reenabled replication, no impact. But thi ...

Score: 0
recovering lost access to RAID5
ng flag

I had perfectly working RAID5 and added another device. I lost power during the RAID recovery. Now I have no access to it - it does not exist - lsblk does no longer recognize it as RAID5 - just individual devices.

I have build a new RAID5 and trying to add one of the devices from the old array. I am getting "device busy" and the add is failing. I found a link solving this issue and started with ...

Score: -2
StudioProjects avatar
Hosting Multiple Django Websites on a VPS
cn flag

I'm moving away from WordPress and into bespoke Django websites.

I've settled on Django as my Python framework, my only problems at the moment are concerning hosting. My current shared hosting environment is great for WordPress (WHM on CloudLinux), but serving Django on Apache/cPanel appears to be hit and miss, although I haven't tried it as yet with my new hosting company. - who have Python enab ...

Score: 0
Can you migrate a "localhost" cloud to "public" cloud
jp flag

If you create a localhost cloud using juju, running kubernetes - is there a way to migrate to "public" cloud?

Score: 0
LXD and Multipass - will LXD 5.0 LTS support or use multipass
jp flag

I am thinking about using multiple microk8s nodes on MacOs M1. If I am using LXD I can have multiple VMs running microk8s in a virtuel cluster simulating one-n k8s nodes.

LXD looks very good for managing vm and system containers.

I found that LXD does not work on my MacOs M1 machine and I have to use a LXD server installed using multiples. Will this server then contain every vm that again contain mi ...

Score: 0
Why dar won't allow me to unmount?
cn flag

I'm trying to make a multi-volume backup of a huge directory with DAR. This should be possible, according to the tutorial. Or at least used to be.

root@box:/# dar -R / -c mnt/backups/syncable -z -g home/myuser/spin/syncable -\\ home/myuser/spin/bigdir/Photos:home/myuser/spin/bigdir/src
# note: pwd is /

The idea here is to get all the files in /home/myuser/spin/bigdir and follow the two symlinks:  ...

Score: -2
best filesystem for millions of files
jp flag

Which Linux filesystem/setup would you choose for the best speed in the following scenario:

a few million files ~3mb file size on average random access to files need to get a list of all the files frequently constant writing of new files constant reading of old files

Score: 0
StartedFromTheBottom avatar
DNS Record to "redirect" from old server to new server
fr flag

I have a question regarding DNS:

I have the following setup:

srv-old.example.com | Host(A) | 192.168.1.2 | timestamp
srv-new.example.com | Host(A) | 192.168.1.3 | static 

can I just add another static A-Record like the following to achive, that all requests to srv-old.example.com will redirected to srv-new.example.com:

srv-old.example.com | Host(A) | 192.168.1.3 | static

so in summary i will have

Score: 0
Amol Barge avatar
Google cloud functions contains whole application code unlike aws lambda which contains only function specific code
us flag

I was using aws lambda for few projects. In lambda i can package only function specific code so every function has only its own code. and now i am using google cloud functions for my new project. I've deployed few functions but all the functions contains whole application code. It contains code of other functions too which we don't need. Is it how it works in google cloud functions or did i implemented/ ...

Score: 0
Rodion avatar
Can't upgrade or install programs (Unmet dependencies Error(1)) Ubuntu 20.04.3 LTS
in flag

As I see my problem is similar to this one libc6 dependency mismatch in Debian 9.12 stretch. Please,advice a solution for my distribution

sudo apt-get upgrade

Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 libc6-dbg : Depends: libc6 (= 2. ...
Score: 0
ansible registering variable outputs undefined variable
bo flag

I'm trying to do this playbook for half a day. I'm using stat module to check sha1sum of file and if it is not equal to second file it should replace correct file. But while registering some variables the output says that variables is undefined What am I doing wrong ?

---
- hosts: all
  remote_user: root
  tasks:
    - name: get sum of file
      stat:
        path: /home/roundcube/config.php
      ...
Score: 3
"just in time" filesystem using inotifywait and mkfifo
ru flag

I am writing some gross middleware - basically, I have some old code that needs to open 100,000 files for reading only, expecting them all to be in one folder. It never writes. It is multiprocess so it can try to open ~30 files at the same time. The old way, I would have to actually copy the files into that folder (or use links, NFS, etc.). Worth noting I have no ability to change this old code - its ju ...

Score: 0
Abe avatar
Failed to restart fail2ban.service: Unit firehol.service not found
de flag
Abe

When you come accorss this error after uninstalling Firehol. Check that you don't have this block:

[Unit]
# Starting fail2ban will automatically start firehol before it.
# Stopping firehol will automatically stop fail2ban before it.
BindsTo=firehol.service
After=firehol.service

in /etc/systemd/system/fail2ban.service.d/override.conf or systemctl edit fail2ban

If you have it, delete it and start/ re ...

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.