tail -f /dev/null

If you haven't had any obstacles lately, you're not challenging. be the worst.

Invoke-WebRequest : The underlying connection was closed: An unexpected error occurred on a send.

環境 Windows server 2016 Host Application: C:\Windows\System32\WindowsPowerShell\v1.0\powershell_ise.exe PSVersion: 5.1.14393.3471 PSCompatibleVersions: 1.0, 2.0, 3.0, 4.0, 5.0, 5.1.14393.3471 BuildVersion: 10.0.14393.3471 CLRVersion: 4.0.…

AWS EBS volume size 拡張

Linux OS (Centos 7) Extend volume size # ex. modify root volume size 10GiB to 20GiB $ aws ec2 modify-volume --volume-id vol-xxx --size 20 --region ap-northeast-1 Check File system $ sudo file -s /dev/xvd* /dev/xvda: x86 boot sector; partit…

chefを利用するのにbundle installを辞めて、chefDKを採用

environment Chef Development Kit: 3.8.14 chef-client version: 14.10.9 berks version: 7.0.7 kitchen version: 1.24.0 inspec version: 3.6.6 background chefを利用するのに bundle install して利用していたが、依存関係で嵌ると沼から抜け出せない事…

machinekeyについて

machinekeyとは machineKey 要素 (ASP.NET 設定スキーマ) | Microsoft Docs 主にform認証data、view(html)に出力される管理情報(state data)の暗号化、復号化、検証を行う目的で使われるkey。 認証用cookieやviewにおいて、改ざん防止・暗号化が可能。 machi…

Docker: PostgreSQL9.6のcontainerを立てる

locale設定で僅かに躓きました。 Dockerfile FROM postgres:9.6 RUN localedef -i ja_JP -c -f UTF-8 -A /usr/share/locale/locale.alias ja_JP.UTF-8 ENV LANG ja_JP.UTF-8 ENV LANGUAGE ja_JP:ja ENV LC_ALL ja_JP.UTF-8 ENV POSTGRES_USER postgres ENV P…

AWS S3とCloudFrontで301 redirectさせる

aws

概要 今回 halu.dev のdomainを取得したので www.xxx.net (念為伏) から引っ越した。S3のstatic website hostingにおけるredirectは勿論 http -> https は可能だが、 https -> https は不可である。 例えば以下のようにredirectさせる。 www.xxx.net -> www.…

PipenvでPythonの仮想環境を作る

Environment pipenv --version pipenv, version 2018.11.26 Install option virtualenv, virtualenvwrapper が既に install されている場合は削除. brew uninstall pyenv-virtualenv pip uninstall package virtualenvwrapper pipenvのinstall。 pip install…

📝 Zabbix trigger の threshold

基本的な使い方は公式サイトに記載されているが、癖のある閾値の見方をするトリガー設定もあるのでしておく。 regexp(), iregexp() 最新値がregular expressionと一致するかどうかチェックする。 parameterはPOSIXのregular expression。 iregexp("WARNING",…

Grafanaのグラフ描画時に504 Gateway Timeoutが発生する場合がある

概要 zabbixサーバのwebサーバ用として利用しているNginxでGrafanaへreverse proxyしている。 client -> ALB -> Web server(zabbix用) -> (Nginxによるreverse proxy) -> grafana グラフ描画する際のクエリdurationが大きい場合、Nginx側で504 timeoutしてし…

RealTimeBoardでKPTを行ってみて

あるプロジェクトが完了した後、RealTimeBoardというツールを利用してKPT(Keep/Problem/Try) 振り返りを行った。 Sign up (黒で記載を塗りつぶしたらキモい絵面になった。) 流れ Keep, Problem, Tryそれぞれのフェーズ毎に付箋を5分以内に記載し、それに対し…

AWS EC2 instance の一覧を CSV 形式で print

aws

棚卸等で利用. Env % python --version Python 3.7.1 % pip list installed | grep boto boto3 1.12.6 botocore 1.15.6 code #!/usr/bin/env python # -*- coding: utf-8 -*- import pandas as pd import boto3 import click def print_ec2_instances(profil…

Zabbix housekeeper processes more than 75% busyへの対処

環境 Zabbix 4.0.1 (Cent OSコンテナ上に構築) コンテナオーケストレーション: Amazon Elastic Container Service (EC2 type) 概要 Zabbix GUI上から、1ホストにつき5000程アイテムを所有するホストを複数削除した後、表題のエラーが発生。 計40000アイテム…

Server Manager起動時に個々の管理サーバーにおいて権限試行した旨のSecurity Logが出力される

Windows Server(2012R)のServer Managerを起動したところ、個々の管理サーバー辺り300件程度、以下のeventlogが出力されていた。 An operation was attempted on a privileged object - System - Provider [ Name] Microsoft-Windows-Security-Auditing [ Gu…

AWS Availability Zone間のLatencyはどのくらいなのか

AWS Aurora(Postgres)とEC2のAvailability Zoneが同一である場合とそうでない場合を比較し、リクエストの多いバッチの処理時間が2倍程度掛かっていた(Query durationは同じ)。 Availability Zone間のトラフィックは超高速ファイバーによりLatencyが極めて低…

FATAL: LoadError: cannot load such file -- chef/mixin/*

Summary 特定の Cookbook version を変更して Chef server 側へ knife cookbook upload した. その後 Cookbook version を戻して Chef server 側へ knife cookbook upload した. Chef node 側で chef-client -r 'role[xxx]' 実施で表題の error に遭遇. FATA…