Temporary Blog

Δεν είμαι αθηναίος, ούτε Έλληνας πολίτης, αλλά πολίτης του κόσμου

Gitlab Cache...

"... some thing about cache ... "

Ну че типа разберемся с кэшом… В качестве основы возьмем статью GitLab CI speeding up your pipeline with caching Чуток модифицируем это дело вообщем поехали… Пару слов о конфигурации Нам по...

Vault ha (raft storage)...

"..."

Ok just install it Prepare 1 2 3 4 5 6 ip addr add 127.0.0.2/8 dev lo label lo:0 ip addr add 127.0.0.3/8 dev lo label lo:1 cat /etc/hosts 127.0.0.2 vault2.tmp.local 127.0.0.3 vault3.tmp.loca...

Find in jar...

"---"

Предположим нам нужен класс ConfigServiceHelperImpl 1 find . -name '*.jar' -type f -exec bash -c 'jar tvf {} | LC_ALL=C grep "ConfigServiceHelperImpl" 1>/dev/null;if [ "$?" = "0" ]; then echo {}...

Build nginx with openSuse Build Service...

"... to later..."

Lets go Я не знаю как билдить что-то универсальное поэтому будем отталкиваться от имеющейся проблемы. А именно нам нужен nginx для RHEL7 Загрузка необходимых вещей Cкачаваем src rpm для нужног...

Rsyslog -> Kafka <- Logstash

"..."

Кафка для теста: 1 2 3 KAFKA_CLUSTER_ID="$(bin/kafka-storage.sh random-uuid)" bin/kafka-storage.sh format -t $KAFKA_CLUSTER_ID -c config/kraft/server.properties bin/kafka-server-start.sh config/kr...

Too many proccess httpd...

"to be continued..."

Strange Things Не охота думать В какой то момент было замеченно что переодически процессы httpd плодятся больше “заданного” количества например: 1 2 3 4 5 6 7 8 9 10 11 cat 10-worker.conf <If...

Kafka commands for the next time...

"to be continued..."

Some Kafka commands List topics 1 ./kafka-topics.sh k --bootstrap-server applogstash.kafka.local:9092 --list P.S For macos client Franz

Linux namespace commands for the next time...

"to be continued..."

Get iptables rules from specific pod Get pod pid 1 2 crictl ps crictl inspect ccb81ebe7a080 # id from previus command We see some info about container 1 2 3 4 5 6 7 8 9 10 11 12 1...

Kibana/Elasticsearch API...

"to be continued..."

Here some kibana commands for the next time… Find Dashboard Find Dashboard id with title MegaDashboard (output will be id title): 1 2 curl -XGET "http://ololol.local/prod/s/space/api/saved_objects...

Linux socket uptime...

"to be continued..."

Problem view like this: 14-Dec-2022 14:13:15.729 SEVERE [http-nio-10.64.130.81-8080-Acceptor-0] org.apache.tomcat.util.net.Acceptor.run Socket accept failed java.io.IOException: Too many open ...