2024-01-01から1年間の記事一覧

postgres 17 ストリーミングレプリケーション

https://www.postgresql.org/docs/current/recovery-config.html recovery.confは12で削除 → postgresql.conf promote_trigger_file(15以下), trigger_file(12以前)は削除 → 代わりにpg_ctl promoteかpg_promote()を使う postgresql.confのstandby_modeは削…

postgresql パラレルクエリ

Even though PostgreSQL could use up to 8 workers, it has instantiated only six. This is because Postgres also optimises the number of workers according to size of the table and the min_parallel_relation_size. The number of workers made ava…

smart クイックテスト smart 拡張テスト スクラブ の頻度

Synology According to synology: Extended smart test: Recommended to be executed at least once a month for more accurate results. They don’t give a recommendation on scrubbing, but a monthly scrub seems a reasonable schedule.https://www.red…

Synology smartctl

DSM 7.2.2 ST20000NM007D sudo smartctl -a /dev/sata1DSM 7.2.0 MG10ACA20TE → -d sat が必要 sudo smartctl -d sat -a /dev/sata1 -d sat なしだと SMART support is: Unavailable - device lacks SMART capability. For anyone arriving to this thread d…

FreeBSD bash profile

@dan-andreatta suggestion to use strings was helpful: $ strings $(which bash) | grep profile ~/.profile noprofile /usr/local/etc/profile ~/.bash_profileWe can see that for FreeBSD, you need to update and/or create /usr/local/etc/profile in…

PERC H710 FreeBSD

mfi の問題 Unfortunately i get thousands of these bootup messages (Already got them, when booting the installation image from the usb stick), telling me: CodeSelect [...] mfi0 70012 (boot + 21s/0x0002/info) - unexpected sense: PD 01(e0x20/…

CREATE INDEX のSQL確認 postgres

There is actually, just query the pg_indexes system catalog view as follows: SELECT indexdef FROM pg_indexes WHERE indexname = '...'and you should get back the SQL statement used to define it.https://dba.stackexchange.com/questions/116797/…

iDRAC アラート通知

設定の際には、クイックアラート設定がアラートを一括で設定できるのでこちらを利用します。 iDRACでアラート通知を設定してみる - DENET 技術ブログ 2021 クイックアラートの設定はiDRAC 9から

LSI MegaRAID パトロールリード

Patrol Readは、バックグラウンドでドライブの読み取りを実行し、ドライブの不正な領域をマップするユーザー定義可能なオプションです。 Patrol Readは、ドライブ障害の原因となる可能性がある物理ディスク・エラーをチェックします。これらのチェックには通…

Cloudflare Redirect Rules

Redirect Rules 2024Wildcard pattern → 条件を組み合わせたい場合は Custom filter expression 例 Redirect from HTTP to HTTPS ( /.well-known/ は除外) Custom filter expression (http.request.full_uri wildcard "http://*" and not starts_with(http.r…

pkgng オフライン インストール

パッケージのインストール - /var/cache/pkg の利用(続) : FreeBSDで暮らす 2024 このへんの、メディアから pkg(8) を初期化する方法は Release notes なんかには書いてなくて、 FreeBSD 10.1-BETA1のアナウンス に こそっと書き足されていたりします。 Comm…

sshリバースポートフォワーディング autossh

リモートポートフォワーディング 逆ローカルポートフォワーディング、リバースポートフォワーディングとも言われます。 これは「リモートの指定したポート(今回は22)からの接続をローカルの指定したポート(今回は11122)を通るようにする」もので、まさに…

logrotate parent directory has insecure permissions

error: skipping "xxx" because parent directory has insecure permissions (It's world writable or writable by group which is not "root") Set "su" directive in config file to tell logrotate which user/group should be used for rotation. log->f…

postgresq tuning PGTune

PGTunehttps://pgtune.leopard.in.ua/ 簡単にサーバーのスペックを基に適正値を求めるには「PGTune」というツールがあります。 PostgreSQLのメモリチューニングはじめの一歩 2022

postgresql データ投入リストア

pg_dump したデータの投入 pg_dump カスタム形式 [PostgreSQL]pg_dumpとpg_restoreを用いたバックアップとリストア #PostgreSQL - Qiita 2023PostgreSQLのpg_dump、pg_restoreについてまとめる | my opinion is my own 2019※ pg_dumpall はカスタム形式で出…

CSP script-src unsafe-eval

https://developer.mozilla.org/ja/docs/Web/HTTP/Headers/Content-Security-Policy/script-src【解説】クロスサイトスクリプティングのリスク軽減策!CSPについて - 情報セキュリティの総合サービス Proactive Defense 2024

Raspberry pi

【初心者向け完全版】ラズパイの初期設定【win/mac対応】 | sukiburo 2023Raspberry Pi(Raspbian)にやっといたほうがいい設定(マイクロSDカードの延命:swapやlog) 2020 Raspberry Pi 4 B Raspberry Raspberry Pi 4 Model Bのチップの詳細や無線LANアン…

冗長電源 電源冗長

2N構成などで、A系B系2つの電源タップから電源を取得する場合には、A系の電源タップのブレーカーが遮断した場合に、B系の電源タップだけでIT機器全ての電源を確保できるだけの容量を計画しておく必要があります。 サーバーが冗長電源だったとき、電源タップ…

CRIME攻撃 BREACH攻撃

BREACH → HTTP圧縮 CRIME → SSL圧縮 → HTTPヘッダーも対象 CRIMEはHTTP圧縮ではなくSSL圧縮(SPDY,TLS)を利用する攻撃です。(HTTP圧縮の攻撃も示唆はしていました)HTTPヘッダー、つまりクッキーなどを盗むことが可能でした。現在ではブラウザがSSL圧縮を…

Meta Pixel

デバッグhttps://chromewebstore.google.com/detail/meta-pixel-helper/fdgfkebogiimcoedlicjlajpkdmockpc?hl=ja

Amazon Linux2 php アップデート 7.4 → 8.2

yum list installed | grep php > php74-list.txt cat php74-list.txt php-cli.x86_64 7.4.11-1.amzn2 @amzn2extra-php7.4 php-common.x86_64 7.4.11-1.amzn2 @amzn2extra-php7.4 php-devel.x86_64 7.4.11-1.amzn2 @amzn2extra-php7.4 php-fpm.x86_64 7.4.11…

GA4

Google Tag Managerは、次のような場合に有効です。 独自イベントやコンバージョンの計測を行う場合 リリース前にプレビューとデバッグモードでテストを行う場合 他のサードパーティーツール(Facebook pixel、LinkedIn Insightなど)を開発者なしで導入・管…

Cloudflare Cache Rules

PageRule → Cache Rules Cache Rules Cloudflare のキャッシュ設定をカスタマイズします。キャッシュの対象、キャッシュする期間、場所を調整できるほか、一致するリクエストに対して Cloudflare のキャッシュやその他のルール製品との特定のやり取りをトリ…

AMP 削除

Googleがこの「AMPの優遇」を2021年6月に終了したため、AMPを使う理由がなくなりました。 PR TIMESにおけるAMPの削除を行いました | PR TIMES 開発者ブログ 2022 https://example.com/post/amp/ → https://example.com/post/ RewriteRule ^(.+)/amp/$ /$1/ […

Cloudflare PageRule廃止 → 新しいルールへ移行

2024年6月時点におけるCloudflare Page Rulesの現状について | DevelopersIO 2024 実行順 https://developers.cloudflare.com/ruleset-engine/reference/phases-list/#application-layer これらはこのページに記載されている順番で処理されます。このブログ…

munin-php-apcu

APCの値をmuninでとる。 – 楽にしてください。 2012https://code.google.com/archive/p/munin-php-apc/https://github.com/vivid-planet/munin-php-apcをベースにして Opcache と APCu が分割されたのに対応する修正を追加 php と perl 間のデータの受け渡し…

ssmtp

ssmtp yum install ssmtp vi /etc/ssmtp/ssmtp.conf (確認) ssmtp -t < mail.txt alternatives --config mta alternatives --display mta (確認) sendmail -t < mail.txtUbuntu 環境で sSMTP を利用して Gmail を送信してみる #Ubuntu - Qiita 2015いますぐ…

Cloudflare nginx realip

【Cloudflare】Cloudflare経由でのアクセスの際、元の訪問者IPをNginxで復元するために行ったファイル設定 | iret.media 20232024.11 IPv4のみconf.d/real_ip.conf set_real_ip_from 173.245.48.0/20; set_real_ip_from 103.21.244.0/22; set_real_ip_from 1…

Synology DSM 7.2.1 S.M.A.R.T.

DSM 7.2.1 から管理画面から S.M.A.R.T. が確認できなくなったSynology Community 2023https://www.reddit.com/r/synology/comments/16touyg/dsm_721_with_sm_1000017_completely_ditched_smart/ 2023

DNS HTTPSリソースレコード

WebサーバのDNS登録がA/AAAAレコードから、HTTPSレコードに移行していくというものです。 このレコードを使うと、以下の様なことを実現できます。 ApexドメインでCNAMEを使用 HSTSがやっていたようなサーバーとのネゴシエーションをDNSレコードに委譲 Zone A…