2022-05-01から1ヶ月間の記事一覧

データ更新時のundo使用量(インデックスの影響)

DB

MySQL (8.0.28) -- 1. テストテーブル準備drop table tab1;create table tab1( col1 int primary key ,col2 char(100) ,col3 char(100) ); drop procedure proc1; delimiter //create procedure proc1(in x int)begin declare i int; set i = 0; start trans…

{Auto Scaling}チュートリアル:Lambda 関数を呼び出すライフサイクルフックの設定

AWS

https://docs.aws.amazon.com/ja_jp/autoscaling/ec2/userguide/tutorial-lifecycle-hook-lambda.html -- 1. コマンド等のインストール -- 1.1 aws cli version 2 インストール curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscli…

{Auto Scaling}チュートリアル: インスタンスメタデータを使用してターゲットライフサイクル状態を取得するようにユーザーデータを設定する

AWS

https://docs.aws.amazon.com/ja_jp/autoscaling/ec2/userguide/tutorial-lifecycle-hook-instance-metadata.html -- 1. コマンド等のインストール -- 1.1 aws cli version 2 インストール curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip"…

{CloudWatch}複合アラームの作成

AWS

https://docs.aws.amazon.com/ja_jp/AmazonCloudWatch/latest/monitoring/Create_Composite_Alarm.html -- 1. コマンド等のインストール -- 1.1 aws cli version 2 インストール curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscl…

{ALB}固定レスポンス機能

AWS

https://dev.classmethod.jp/articles/alb-fixed-response/ -- 1. コマンド等のインストール -- 1.1 aws cli version 2 インストール curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"unzip awscliv2.zipsudo ./aws/inst…

{VPC}クロスリージョントランジットゲートウェイ

AWS

https://docs.aws.amazon.com/ja_jp/vpc/latest/tgw/transit-gateway-peering-scenario.htmlhttps://docs.aws.amazon.com/ja_jp/vpc/latest/tgw/tgw-peering.html 前提: 東京リージョンと大阪リージョンで以下を設定済み サブネット作成東京リージョン -> 17…

{VPC}クロスアカウントトランジットゲートウェイ

AWS

https://dev.classmethod.jp/articles/transit-gateway-vpc-account/https://dev.classmethod.jp/articles/transitgateway-cross-account-diagram/ 共有元アカウント(アカウントA): 999999999999共有先アカウント(アカウントB): 888888888888 前提: 共有元と…

リストパーティションのメンテナンス

DB

MySQL (8.0.28) drop table tab1; create table tab1( col1 int not null, col2 varchar(10) not null) partition by list columns ( col2 ) ( partition p1 values in ('AX','AY') , partition p2 values in ('BX','BY') , partition p3 values in ('CX','C…

{EKS}Amazon EKS の開始方法 - eksctl

AWS

https://docs.aws.amazon.com/ja_jp/eks/latest/userguide/getting-started-eksctl.html https://adamtheautomator.com/aws-eks-cli/ -- 1. コマンド等のインストール -- 1.1 aws cli version 2 インストール curl "https://awscli.amazonaws.com/awscli-exe…

SQL Serverクライアント

OS

Ubuntu (20)https://docs.microsoft.com/ja-jp/sql/linux/sql-server-linux-setup-tools?view=sql-server-ver15 ※(22)はリポジトリパスを修正してもエラー発生 curl https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add - curl https://p…

Kubernetesインストール(シングル) 2022年5月版

https://www.gremlin.com/community/tutorials/how-to-create-a-kubernetes-cluster-on-ubuntu-16-04-with-kubeadm-and-weave-net/ mmm167: Ubuntu20 Kubernetes master nodemmm169: Ubuntu20 Kubernetes worker node 前提:CPU数=2メモリ 2G ※インストール…

{ALB}Auto Scaling with ALB

AWS

https://qiita.com/miyuki_samitani/items/e06c8cdcfe8a8df226e5https://beyondjapan.com/blog/2017/03/aws-cli-autoscaling/ ロードバランサー | |---> リスナー |ターゲットグループ ↓オートスケーリンググループ ↑起動設定 -- 1. コマンド等のインストー…

PostgreSQLクライアント

OS

Ubuntu (22) sudo apt update -y sudo apt install postgresql-client-14 psql -h 192.168.137.70 -U postgres test Debian (11) apt update -y apt install postgresql-client psql -h 192.168.137.70 -U postgres test CentOS (7) yum update -y yum -y in…

{ALB}アクセスログの作成の有効化

AWS

https://docs.aws.amazon.com/ja_jp/elasticloadbalancing/latest/application/load-balancer-access-logs.html -- 1. コマンド等のインストール -- 1.1 aws cli version 2 インストール curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -…

MySQLクライアント

OS

Ubuntu (22) sudo apt update -ysudo apt install mysql-client mysql -h 192.168.137.66 -u root -p test Debian (11)https://tweenpath.net/install-mysql-client-on-debian-10-buster/ apt update -yapt install default-mysql-client mysql -h 192.168.1…

{APIGateway}HTTP API のログ記録の設定

AWS

https://docs.aws.amazon.com/ja_jp/apigateway/latest/developerguide/http-api-logging.html -- 1. コマンド等のインストール -- 1.1 aws cli version 2 インストール curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"…

Oracleクライアント

OS

Ubuntu (22) https://www.oracle.com/database/technologies/instant-client/linux-x86-64-downloads.html Basic Package (ZIP)SQL*Plus Package (ZIP) sudo mkdir -p /opt/oracle unzip instantclient-basic-linux.x64-19.15.0.0.0dbru.zipunzip instantcli…

NextCloud

OS

Ubuntu (20) https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-nextcloud-on-ubuntu-20-04-ja -- 1. 事前設定sudo vim /etc/hosts 192.168.137.169 mmm169 sudo apt update && sudo apt upgrade -- 2. Nextcloudのインストー…

インポートに必要な権限

DB

MySQL (8.0.28) 結論: ・対象テーブルのdrop権限・対象テーブルのcreate権限・対象テーブルのalter権限・対象テーブルのinsert権限・対象テーブルのselect権限・対象データベースのlock tables権限 -- 動作確認 drop user 'user1'@'%';create user 'user1'@…