TRY AND ERRΦR

気になったこと、勉強したこと、その他雑記など色々メモしていきます。。Sometimes these posts will be written in English.,

AWS

CodeDeployでALB-EC2へのデプロイ時間を短縮する

AWS

AWS CodeDeployでALB配下のEC2にインプレースデプロイする際、本番にデプロイした際にいきなり遅くなった、、、 結論、本番のALBターゲットのヘルスチェック間隔がdevのそれよりも長かったのが原因でした。 以下のフォーラムによると、デプロイ時にトラフィ…

My convenient snippet for showing information of EC2 instance.

AWS

If you want to make sure ec2 instance information from inner itself, you should check this post. (Describes about in the case of EC2-AmazonLinux which has already installed `aws` command.)For instance this is an alias named `me` that outpu…

ELBのヘルスチェック(200)を受け入れつつBasic認証をかける

ELB (ALB) + EC2*2(apache)にvirtual hostでマッピングしたサービスにBasic認証をかけたい。 ただしELBはstatus=200のチェックのままで、この辺はいじりたくないなぁって時の話です。上記のようなAWS上の設定やアプリの設定を極力変えずにBasic認証をかける…

【AWS CodeDeploy】Resource permissions by appspec.yml

AWS

I had misunderstanding for "permissions" in appspec.yml of AWS CodeDeploy. Say around that we have an app which directory structure is like below. CodeDeployのappspec.ymlで使うpermissionセクションについて誤解してた。。 例えば以下のような構…

AWS CodeDeploy logs that you should watch.

AWS

We have a web service with AWS, located in like below environment. (This time in case of using AmazonLinux) WebServer: - Production: - ALB * 1 - EC2 * 2 - Dev: - EC2 * 1 DB: - Production: Aurora * 1 - Dev: Aurora * 1 Our source code is m…

Auroraがマルチマスターをプレビュー公開

AWS Auroraでマルチマスター機能がプレビュー公開されました。# レジュメ https://aws.amazon.com/jp/about-aws/whats-new/2017/11/sign-up-for-the-preview-of-amazon-aurora-multi-master/プレビューはMySQLの互換エディションでのみ利用可らしいです。 マ…

AWS Aurora restarted due to an error Out Of Memory

Recently, there was a problem that Aurora database had been restarting at the same time on daily. Since at the time batch with a huge query had processed, so we guessed it was the cause of restarting Aurora. We asked AWS Technical Support …

Make replication between external Mysql and RDS-Aurora.

My external Mysql, which means non-AWS-RDS, has a large capacity records in it, and have been replicating between master and slave which are both external Mysql.It's difficult and too annoying about its slowness to dump data and to import …