https://www.reddit.com/r/PostgreSQL/comments/dqg8qs/some_tips_on_optimizing_postgres_on_amazon/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- Create a group | |
| CREATE ROLE readaccess; | |
| -- Grant desired access to existing tables | |
| GRANT USAGE ON SCHEMA public TO readaccess; | |
| GRANT SELECT ON ALL TABLES IN SCHEMA public TO readaccess; | |
| -- Grant access to future tables | |
| ALTER DEFAULT PRIVILEGES IN SCHEMA public GRANT SELECT ON TABLES TO readaccess; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # kube get pod logs by pod name | |
| function podlogs() { | |
| k logs -f $(k get pods | grep "$1" | cut -d ' ' -f 1) | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| kubectl set image deployment/my-deployment app=myimage |
List base image names and tags
curl https://docker.example.com/v2/_catalog. # List repos (base image names)
curl https://docker.example.com/v2/myimage/tags/list # List image tags
Ok for image names to have forward slashes
To get all images in a registry, call the catalog API, then call tags/list for each result.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Source: https://wiki.teltonika-networks.com/view/Mobile_Signal_Strength_Recommendations | |
| RSRP | |
| RSRP Signal strength Description | |
| >= -80 dBm Excellent Strong signal with maximum data speeds | |
| -80 dBm to -90 dBm Good Strong signal with good data speeds | |
| -90 dBm to -100 dBm Fair to poor Reliable data speeds may be attained, but marginal data with drop-outs is possible. When this value gets close to -100, performance will drop drastically | |
| <= -100 dBm No signal Disconnection | |
| RSRQ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| kubectl cp production/my-pod-77d5978bbd-hlmzb:/app/output.csv output.csv |
Use UPDATE SKIP LOCKED to manage queue concurrency
DELETE FROM queue
WHERE itemid = (
SELECT itemid
FROM queue
ORDER BY itemid
FOR UPDATE SKIP LOCKED
LIMIT 1