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
cycle-postgres-1 | 2025-03-21 12:29:05.146 [1] main/114/governor_loop I> configuring replication | |
cycle-postgres-1 | 2025-03-21 12:29:05.146 [1] main/114/governor_loop I> calling proc_replication, is_master: true, instance_name: default_1_1 | |
cycle-postgres-1 | 2025-03-21 12:29:05.146 [1] main/104/interactive I> self-activated successfully | |
cycle-postgres-1 | 2025-03-21 12:29:05.146 [1] main/104/interactive I> starting postgres server at ("127.0.0.1", 4327)... | |
cycle-postgres-1 | 2025-03-21 12:29:05.146 [1] main/122/pgproto I> creating statement storage with capacity 1024 | |
cycle-postgres-1 | 2025-03-21 12:29:05.146 [1] main/122/pgproto I> creating portal storage with capacity 1024 | |
cycle-postgres-1 | 2025-03-21 12:29:05.146 [1] main/104/interactive I> skipped luaL_loadfile due to picodata callback | |
cycle-postgres-1 | 2025-03-21 12:29:05.146 [1] main I> entering the event loop | |
cycle-postgres-1 | 2025-03-21 12:29:05.146 [1] main/110/.proc_replication I> connecting to 1 replicas | |
cycle-postgres-1 | 20 |
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
import re | |
from inspect import getmembers, isclass | |
from os import path | |
from posixpath import abspath | |
from schemas import settings | |
base = settings.BaseSettings.schema() | |
info = '' | |
toc = '' |
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
from types import GenericAlias | |
from typing import get_type_hints | |
async def tester(param: list[str]): | |
return [ | |
x + '!' for x in param | |
] | |
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
class Response: | |
data: list | |
async def get_data(): | |
# we have 250k rows of lists with 7 tuples - str and int | |
return [] | |
async def handler_empty(): | |
await get_data(); # 2 sec | |
return {'data': []} # 0 sec |
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
nekufa@fasiga ~/software/wfm % yc container repository lifecycle-policy create --repository-name crpf255p88b3bourvm4f --rules ./rules.json | |
id: crp6l3eg11h899i55cjt | |
repository_id: crp4dn6lp7isk8p11t3l | |
status: DISABLED | |
created_at: "2023-03-02T08:13:12.555327449Z" | |
rules: | |
- description: keep weekly tags not less 8 images | |
expire_period: 604800s | |
tag_regexp: .* | |
retained_top: "8" |
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
# Get version | |
nekufa@fasiga ~ % kubectl describe pod nats-2 -n wfm-test | grep Image | |
Image: nats:2.7.2-alpine | |
Image ID: docker-pullable://nats@sha256:8b3fb2423a8cce4607ef30a990b35545afe0a3c613cd05b8eec7b483df268b1d | |
Image: natsio/nats-server-config-reloader:0.6.2 | |
Image ID: docker-pullable://natsio/nats-server-config-reloader@sha256:ad0374303b134b7d2d4a5a781107b426739df73fcf504c26c5ef15bc1c4ca10e | |
Image: natsio/prometheus-nats-exporter:0.9.0 | |
Image ID: docker-pullable://natsio/prometheus-nats-exporter@sha256:cbeecd2159da4705dcde1b834f8efb97b3acd7a1be6fc393fe0cd2644fc30b50 |
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
~ # nats stream report | |
Obtaining Stream stats | |
╭────────────────────────────────────────────────────────────────────────────────────────────────╮ | |
│ Stream Report │ | |
├──────────────────────────┬─────────┬───────────┬──────────┬────────┬──────┬─────────┬──────────┤ | |
│ Stream │ Storage │ Consumers │ Messages │ Bytes │ Lost │ Deleted │ Replicas │ | |
├──────────────────────────┼─────────┼───────────┼──────────┼────────┼──────┼─────────┼──────────┤ | |
│ event_notify_budget │ File │ 1 │ 0 │ 0 B │ 0 │ 0 │ nats-0* │ | |
│ action │ File │ 1 │ 0 │ 0 B │ 0 │ 0 │ nats-0* │ |
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
/data/jetstream/$G/streams: | |
total 76 | |
drwxr-x--- 4 root root 4096 Feb 8 04:46 anomaly | |
drwxr-x--- 4 root root 4096 Feb 8 05:52 developer | |
drwxr-x--- 4 root root 4096 Feb 8 04:46 event | |
drwxr-x--- 4 root root 4096 Feb 8 04:46 event_changes | |
drwxr-x--- 4 root root 4096 Feb 8 04:46 event_notify_action | |
drwxr-x--- 4 root root 4096 Feb 8 04:46 event_notify_anomaly | |
drwxr-x--- 4 root root 4096 Feb 8 04:46 event_notify_flow | |
drwxr-x--- 4 root root 4096 Feb 8 04:46 event_notify_genesis |
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
Information for Stream gateway created 2022-02-07T13:06:25Z | |
Configuration: | |
Subjects: gateway, gateway.channel.* | |
Acknowledgements: true | |
Retention: File - WorkQueue | |
Replicas: 1 | |
Discard Policy: New | |
Duplicate Window: 1m0s |
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
Configuration: | |
Subjects: space | |
Acknowledgements: true | |
Retention: File - WorkQueue | |
Replicas: 1 | |
Discard Policy: New | |
Duplicate Window: 2m0s | |
Allows Msg Delete: false | |
Allows Purge: true |
NewerOlder