tail -f /dev/null

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

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…

Setup local MacBook

MacBook Proを新しい端末へ替えた時のsetup手順をメモする。 Environment MacBook Pro 2019 macOS 13.2.1(22D68) Applications 次の application を install Google Chrome GoogleDrive Slack 1Password Authy Hyper Xcode HomeBrew 旧 PC の brew install…

AWS Configは通知ノイズが大きい

aws

AWS Configを通して何が実現出来るのか AWS Resourceの変更通知。 AWS Resourceの変更履歴の検索。 AWS Resourceの構成情報や設定変更ログのSnapshotをS3に保存。 Multi accounts, Multi regionsでAWS resourceの変更を追跡、通知可能。 Managed Rule, Custo…

コミット履歴から秘匿情報を削除したい

git

概要 秘匿情報を過去にコミットしたことがある場合等で、特定のディレクトリのみ、コミット履歴から削除する。 手順 $ git filter-branch -f --index-filter 'git rm -rf --ignore-unmatch {path_to_directory}' HEAD # or $ git filter-branch -f --index-f…

Compare the two container-orachestrations Elasticbeanstalk and EC2 Container Services

aws

This post is day 23 Sansan Advent Calendar. ElasticBeanstalk (EB) Have you ever used ElasticBeanstalk (hereinafter, this is called "EB") before? This service with a fairy name (Beanstalk = Jack and the Beanstalk) create a Paas-like environ…