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

Redisシャーディング

https://changineer.info/server/nosql/nosql_redis_cluster.htmlhttps://qiita.com/keitatata/items/44678ad472e61a4606c5 前提OS : Rocky Linux 9.1Redis version : 6.2.7 mmm191 : Redis master(Shard#1)mmm192 : Redis master(Shard#2)mmm193 : Redis ma…

{GCP Cloud Storage}オブジェクトのバージョニングを使用する

GCP

https://cloud.google.com/storage/docs/using-object-versioning?hl=ja https://cloud.google.com/storage/docs/using-versioned-objects?hl=ja https://cloud.google.com/storage/docs/object-versioning?hl=ja -- 1. 前作業 gcloud initgcloud auth list …

{Azure Storage}BLOB のバージョン管理を有効にして管理する

https://learn.microsoft.com/ja-jp/azure/storage/blobs/versioning-enable?tabs=portalhttps://learn.microsoft.com/ja-jp/azure/storage/blobs/versioning-overview -- 1. 前作業 az login --use-device-codeaz account show az version az configure --l…

MongoDBシャーディング

https://changineer.info/server/nosql/nosql_mongo_sharding.html 前提OS : Rocky Linux 9.1MongoDB version : 6.0.3 mmm190 : mongosmmm191 : MongoDB(config) primarymmm192 : MongoDB(Shard#1) primarymmm193 : MongoDB(Shard#2) primary -- 1. MongoDB…

{GCP Cloud Storage}Cloud Storage のツールを使用した V4 署名プロセス

GCP

https://cloud.google.com/storage/docs/access-control/signing-urls-with-helpers?hl=jahttps://cloud.google.com/storage/docs/access-control/signed-urls?hl=jahttps://dev.to/suavebajaj/using-gsutil-signed-url-3pnj -- 1. 前作業 gcloud initgcloud…

{Azure Storage}Azure CLI を使用してコンテナーまたは BLOB のユーザー委任 SAS を作成する

https://learn.microsoft.com/ja-jp/azure/storage/blobs/storage-blob-user-delegation-sas-create-clihttps://learn.microsoft.com/ja-jp/azure/storage/common/storage-sas-overviewhttps://qiita.com/___uhu/items/3c2312359da542cda163 Azure Storage …

MongoDBレプリケーション

https://www.mongodb.com/docs/manual/tutorial/deploy-replica-set/ 前提OS : Rocky Linux 9.1MongoDB version : 6.0.3 mmm191 : MongoDB primarymmm192 : MongoDB secondarymmm193 : MongoDB secondary -- 1. MongoDBインストール[mmm191,mmm192,mmm193で…

{GCP Cloud Storage}HTTP を使用した静的ウェブサイトのホスティング

GCP

https://cloud.google.com/storage/docs/hosting-static-website-http?hl=jahttps://zenn.dev/kiyomaryu/articles/1b7abe032f2f0ehttps://cloud.google.com/storage/docs/access-public-data?hl=jahttps://cloud.google.com/storage/docs/access-control/mak…

Redisレプリケーション

https://changineer.info/server/nosql/nosql_redis_replication.html 前提OS : Rocky Linux 9.1Redis version : 6.2.7 mmm191 : Redis mastermmm192 : Redis replicammm193 : Redis replica -- 1. Redisインストール[mmm191,mmm192,mmm193で実施] ※Redis Se…

{Azure Storage}Azure Storage で静的 Web サイトをホストする

https://learn.microsoft.com/ja-jp/azure/storage/blobs/storage-blob-static-website-how-to?tabs=azure-cli https://learn.microsoft.com/ja-jp/azure/storage/blobs/storage-blob-static-website アカウントに $web という名前の BLOB ストレージ コンテ…

{GCP Cloud Tasks}Cloud Tasks キューにタスクを追加する

GCP

https://cloud.google.com/tasks/docs/add-task-queue?hl=ja -- 1. 前作業 gcloud initgcloud auth list gcloud --version gcloud projects create project01-9999999 \--name="project01" gcloud config listgcloud config set project project01-9999999gc…

{Azure Service Bus}Azure CLI を使用して Service Bus 名前空間とキューを作成する

https://learn.microsoft.com/ja-jp/azure/service-bus-messaging/service-bus-quickstart-cli https://learn.microsoft.com/ja-jp/azure/service-bus-messaging/service-bus-python-how-to-use-queues -- 1. 前作業 az login --use-device-codeaz account s…

{GCP Cloud Pub/Sub}gcloud CLI を使用して Pub/Sub でメッセージをパブリッシュし、受信する

GCP

https://cloud.google.com/pubsub/docs/publish-receive-messages-gcloud?hl=ja -- 1. 前作業 gcloud initgcloud auth list gcloud --version gcloud projects create project01-9999999 \--name="project01" gcloud config listgcloud config set project p…

{Azure Service Bus}Azure CLI を使用して Service Bus トピックとそのサブスクリプションを作成する

https://learn.microsoft.com/ja-jp/azure/service-bus-messaging/service-bus-tutorial-topics-subscriptions-cli https://learn.microsoft.com/ja-jp/azure/service-bus-messaging/service-bus-python-how-to-use-topics-subscriptions https://learn.micr…

{GCP Cloud DNS}DNS ルーティング ポリシーとヘルスチェックを管理する

GCP

https://cloud.google.com/dns/docs/zones/manage-routing-policies#gcloudhttps://www.topgate.co.jp/gcp26-domain-operation-by-cloud-dnshttps://kinsta.com/jp/knowledgebase/flush-dns/ Cloud DNS でサポートされるルーティング ポリシーは次のとおりで…

{Azure Traffic Manager}クイック スタート:Azure CLI を使用して Web アプリケーションの高可用性を実現する Traffic Manager プロファイルを作成する

https://learn.microsoft.com/ja-jp/azure/traffic-manager/quickstart-create-traffic-manager-profile-cli https://learn.microsoft.com/ja-jp/azure/traffic-manager/traffic-manager-routing-methods Traffic Manager では、次のトラフィック ルーティン…

{GCP Secret Manager}Secret Manager でシークレットを作成する

GCP

https://cloud.google.com/secret-manager/docs/create-secret?hl=ja https://zenn.dev/nananaoto/articles/43e3414fdb1da37b377e -- 1. 前作業 gcloud initgcloud auth list gcloud --version gcloud projects create project01-9999999 \--name="project01…

{Azure Key Vault}クイック スタート:Azure CLI を使用して Azure Key Vault との間でシークレットの設定と取得を行う

https://learn.microsoft.com/ja-jp/azure/key-vault/secrets/quick-create-cli -- 1. 前作業 az login --use-device-codeaz account show az version az configure --list-defaultsaz configure --defaults location=japaneastaz configure --list-defaults…

{GCP Cloud KMS}Cloud KMS 鍵を使用してリソースを保護する

GCP

https://cloud.google.com/compute/docs/disks/customer-managed-encryption?hl=ja https://qiita.com/atsumjp/items/b872744d69686a1fc783 https://blog.g-gen.co.jp/entry/cloud-kms-explained 顧客管理の暗号鍵(CMEK)顧客指定の暗号鍵(CSEK) ここでは…

IOスケジューラ

OS

https://slacknotebook.com/linux-io-scheduler1/ Ubuntu (22) cat /sys/block/sda/queue/scheduler [mq-deadline] none Debian (11) cat /sys/block/sda/queue/scheduler [mq-deadline] none CentOS (RL9) cat /sys/block/sda/queue/scheduler [mq-deadline…

Prometheus and Grafana

OS

Ubuntu (20) https://www.digitalocean.com/community/tutorials/how-to-monitor-mongodb-with-grafana-and-prometheus-on-ubuntu-20-04 [1] Prometheusインストール sudo apt updatesudo mkdir -p /etc/prometheussudo mkdir -p /var/lib/prometheus wget h…

{Azure Key Vault}Azure CLI を使用して、マネージド ディスクでカスタマー マネージド キーを使用し、サーバー側の暗号化を有効にする

https://learn.microsoft.com/ja-jp/azure/virtual-machines/linux/disks-enable-customer-managed-keys-cli https://learn.microsoft.com/ja-jp/azure/virtual-machines/linux/disks-enable-host-based-encryption-cli -- 1. 前作業 az login --use-device-…

{Azure Backup}Azure CLI を使用した Azure での仮想マシンのバックアップ

https://learn.microsoft.com/ja-jp/azure/backup/quick-backup-vm-clihttps://learn.microsoft.com/ja-jp/azure/backup/tutorial-restore-diskhttps://learn.microsoft.com/ja-jp/azure/backup/backup-azure-security-feature-cloud VMのバックアップと復元…

{GCP Cloud Load Balancing}マルチリージョンの外部 HTTPS ロードバランサへのリクエストの転送

GCP

https://cloud.google.com/load-balancing/docs/https/setting-up-https?hl=ja#gcloud-and-using-curl /video で始まる URL パスを含むトラフィック -> us-central1-bその他のトラフィック -> europe-west1-b httpのみ実施 -- 1. 前作業 gcloud initgcloud a…

{Azure Front Door}クイックスタート:Azure CLI を使用して高可用性を実現するグローバル Web アプリケーションのための Front Door を作成する

https://learn.microsoft.com/ja-jp/azure/frontdoor/quickstart-create-front-door-cli https://marcelzehner.ch/2020/04/19/managing-azure-front-door-with-the-azure-cli/ Azure Front Door には、Azure Front Door Standard と Azure Front Door Premiu…

{GCP Cloud Spanner}gcloud CLI を使用してデータベースを作成し、クエリを実行する

GCP

https://cloud.google.com/spanner/docs/getting-started/gcloud?hl=ja Cloud Spanner は、リクエスト負荷やデータサイズに基づいてデータを自動的にシャーディングしてパフォーマンスを最適化します。 1 ノードあたりの料金/時間 $1.17プロビジョニングした…

{GCP Cloud Bigtable}cbt CLI でインスタンスを作成してデータを書き込む

GCP

https://cloud.google.com/bigtable/docs/create-instance-write-data-cbt-cli?hl=ja https://cloud.google.com/bigtable/docs/creating-instance?hl=ja#cbthttps://cloud.google.com/bigtable/docs/cbt-reference?hl=ja ノードあたり $0.85/時間(最小 1 ノ…

SQL文コメントのクライアント依存性

DB

調べた範囲では、mysql clientだけデフォルトでコメント削除する MySQL (8.0.31) select /* test20221221 */ sleep(10000); show processlist\G [1]mysql clientの場合デフォルトではSQLのコメントは除去されるため、表示されない★ ※ cオプション付与でコメ…

3テーブル結合ヒント句指定方法

DB

MySQL (8.0.31) -- データ準備drop table tab1;drop table tab2;drop table tab3; create table tab1(col1 int,col2 int);create table tab2(col1 int,col2 int);create table tab3(col1 int,col2 int); drop procedure proc1; delimiter //create procedure…

{GCP BigQuery}bqツールを使用してデータを読み込みクエリを実行する

GCP

https://www.topgate.co.jp/gcp12-how-to-analyze-big-data-with-bigquery https://cloud.google.com/bigquery/docs/quickstarts/load-data-bq?hl=ja bq コマンドライン ツールは、Python をベースにした BigQuery 用のコマンドライン ツールですbqコマンド…