Latest Server related questions

Score: 1
Using CloudWatch to monitor concurrent users
pf flag

I'm looking for a good way to monitor concurrent users in my server. The server's got a websocket connection, so it's easy to determine whether a user is connected or not. After looking into CloudWatch for a bit, I have a plan:

Every minute, each server in the server cluster will send the current amount of users connected to the same CloudWatch metric and namespace

In the end, I can use the CloudWat ...

Score: 0
BairDev avatar
How can I test an ajp worker (tomcat10, apache 2.4.6)?
cn flag

I have a simple server setup:

  1. Apache 2.4.6
  2. JK Worker for talking with Tomcat, where a REST service is living
  3. Tomcat 10

Virtual Host

In my virtual host file I have this configuration (snippet in <VirtualHost *:443>):

<Directory "/var/www/frontends">
    Require all granted

    RewriteEngine On

    # [...]
    RewriteRule co2avatar-app/sdp-api$ sdp-api/test/ [PT]
    RewriteRule co2 ...
Score: 0
systemdebt avatar
npm script not able to use executables from node_modules.bin directory
cn flag

My npm script in package.json looks like this:

"build": "$(npm bin)/react-scripts build",

OR

"build": "react-scripts build",

It throws the following error:

Error: Cannot find module '../scripts/build'
Require stack:
- /codebuild/output/src573716697/src/node_modules/.bin/react-scripts
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:815:15)
    at Function.resolve (interna ...
Score: 0
Şükrü Özdemir avatar
OPTIMIZE TABLE innodb file per table while system is running
kr flag

I had an 800 GB Moodle mdl_logstore_standard_log.ibd database file. I deleted around 900 million rows in 10-15 days. The .idb file was around 800GB and still the same size after deletion. I want to optimize the table so I can fix this.

Is it safe to run OPTIMIZE TABLE while users continue to use the moodle webpage? Or should I stop users from accessing and run OPTIMIZE TABLE?

If I stop access, I mus ...

Score: 0
TheAnachronism avatar
Firewalld port forwarding Proxmox makes port unusable for other connections
in flag

I have a server hosted by hetzner with a single public ip address which runs proxmox and some VMs. This ip address is configured inside /etc/interfaces like this:

auto enp35s0
iface enp35s0 inet static
    address {{my-public-ip}}/{{subnet}}
    gateway {{hetzner-gateway}}
    up route add -net {{hetzner-ip}} netmask 255.255.255.192 gw {{hetzner-gateway}} dev enp35s0

This configuration was done by het ...

Score: 0
Mâtt Frëëman avatar
Confirm IAM Understanding with S3 Bucket Policy and ELB
pk flag

I have setup an S3 bucket with the policy suggested per https://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-access-logs.html#access-logging-bucket-permissions (with obvious ID substitutions), this works, ALB logs are hitting the S3 bucket.

I then started wondering about the exact policy. It seems this policy is allowing the full ELB (not linked to my account - account ...

Score: 1
How to know what roles are missing in RBAC
jp flag

How can I figure out what role is missing in a service account?

Like I have the following:

kubectl auth can-i create taskrun --all-namespaces --as=system:serviceaccount:default:default

no

Ok, but where to go from here :-)

Score: 0
user3779502 avatar
With BIND9 - Is there a way to segment forwarders + zones in views
in flag

Beginning to think there is no clean way to do this All internal facing.

  1. Each location has it's own DNS server (70 locations) - In case their connection to the internet sd-wan is down.
  2. Each location should reference it's firewall as the first forwarder (usually it's internet provider's, second a public one (such as 8.8.8.8). This is in case one or the other is down.
  3. Locations on the West coast, will ro ...
Score: 0
AWS RDS MySQL connection limits
in flag

I have a MySQL database server, db.t3.micro, parameter group is 'default.mysql8.0', max_connections is '{DBInstanceClassMemory/12582880}'

I figured out that it cannot handle more than ~63 connections

According to AWS RDS documentation https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Limits.html#RDS_Limits.MaxConnections

Connection limit for Mysql is calculated using '{DBInstanceClassMemo ...

Score: 0
SSH Host Keys changed after reboot
br flag

I noticed something strange on one of our (customers) ESXi (6.7.0). The SSH host keys suddenly changed after a reboot. Not only that, it got created with too open file permissions so nobody could connect. In the logs i found (obviously):

WARNING: UNPROTECTED PRIVATE KEY FILE!

I fixed the permissions, but it still looks strange to me. Background is, there was a ransomware attack previously at the compa ...

Score: 0
Vasyl Herman avatar
kubernetes ingress replace path
cn flag

I have two backend api-services:

  1. api-service-v1
  2. api-service-v2

Both respond on "/api/" path

I have this configuration running fine as a docker-compose setup where nginx service serves as a proxy with the following config file

/etc/nginx/conf.d/default.conf:

server {
    ...

    location /apiv1/ {
        proxy_pass http://api-service-v1/api/;
    }
    ...

    location /apiv2/ {
        proxy_pas ...
Score: 0
Vahid Alimohamadi avatar
kolla-ansible openstack cloudkitty error
kz flag

I'm using an All-IN-ONE kolla-ansible wallaby release machine for developing a custom ui for a public cloud. When i try to get summary in RATING admin menu in Horizon this error happens:

2021-10-14 11:46:19.756 28 ERROR cloudkitty.common.policy ...
 - default default] Policy check for report:get_summary failed with credentials {'user': '2e69fcab25f8423693661478d155dca1', 'tenant': '66233f955a644a758 ...
Score: 0
Java large heap in container environment
uy flag

I'm trying to run a Jetty webserver on kubernetes, it needs an extremely huge amount of heap ~ 250 GB in our production environment, ~ 50 GB in our test environment.

I'm using jetty:9.4-jdk11, I'm trying to avoid setting Xms or Xmx flags explicitly because the value is different between different environments, for that I thought depending on -XX:MaxRAMPercentage -XX:InitialRAMPercentage would be much bet ...

Score: 0
Pete B. avatar
Updating AD attributes programmatically
mx flag

My apologies, as I am an engineer not a sys admin, but am working with someone who is managing AD.

Current situation: We have an AD attribute that contains a longish parse-able string that contains several data elements. We'd like to break those elements into a separate attributes. For example if we have:

serverInfo: name=nameOne|xx=xx|group=group1|id=123|privilege=9;name=nameTwo|xx=yy|.....

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.