91
Server / Re:Postgresql: Objem a obsah vygenerovanych wal logu za obdobi zpetne?
« kdy: 29. 09. 2022, 12:15:22 »
pgbadger by vam to z logu vytahl, ale pokud WALy nelogujete, tak...
Tato sekce Vám umožňuje zobrazit všechny příspěvky tohoto uživatele. Prosím uvědomte si, že můžete vidět příspěvky pouze z oblastí Vám přístupných.
2022-09-07 10:22:07 =ERROR REPORT====
** Generic server <0.3216.0> terminating
** Last message in was {submit,#Fun<rabbit_auth_backend_ldap.14.130291405>,<0.3323.0>,reuse}
** When Server state == {from,<0.3323.0>,#Ref<0.1575869796.3397124098.189438>}
** Reason for termination ==
** {error,noSuchObject}
2022-09-07 10:22:07 =CRASH REPORT====
crasher:
initial call: worker_pool_worker:init/1
pid: <0.3216.0>
registered_name: []
exception exit: {{error,noSuchObject},[{gen_server2,terminate,3,[{file,"src/gen_server2.erl"},{line,1183}]},{proc_lib,wake_up,3,[{file,"proc_lib.erl"},{line,236}]}]}
ancestors: [ldap_pool_sup,rabbit_sup,<0.273.0>]
message_queue_len: 0
messages: []
links: [<0.3214.0>,<0.3324.0>]
dictionary: [{{parse_memo_table,rabbit_semver_parser},#Ref<0.1575869796.3397255169.196445>},{ldap_conns,#{{false,["DC1_FQDN","DC2_FQDN","DC3_FQDN"],[{timeout,10000},{log,#Fun<rabbit_auth_backend_ldap.12.130291405>},{port,636},{idle_timeout,300000},{anon_auth,false}]} => <0.3324.0>}},{timeouts,{dict,1,16,16,8,80,48,{[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[]},{{[],[],[],[],[[{false,["DC3_FQDN","DC2_FQDN","DC1_FQDN"],[{timeout,10000},{log,#Fun<rabbit_auth_backend_ldap.12.130291405>},{port,636},{idle_timeout,300000},{anon_auth,false}]}|#Ref<0.1575869796.3397124097.196446>]],[],[],[],[],[],[],[],[],[],[],[]}}}},{worker_pool_worker,true},{rand_seed,{#{jump => #Fun<rand.3.47293030>,max => 288230376151711743,next => #Fun<rand.5.47293030>,type => exsplus},[157340505717612509|275064144784962344]}},{worker_pool_name,ldap_pool}]
trap_exit: false
status: running
heap_size: 2586
stack_size: 28
reductions: 187199
neighbours:
neighbour: [{pid,<0.3324.0>},{registered_name,[]},{initial_call,{erlang,apply,2}},{current_function,{eldap,loop,2}},{ancestors,[]},{message_queue_len,0},{links,[<0.3216.0>]},{trap_exit,false},{status,waiting},{heap_size,987},{stack_size,6},{reductions,15336},{current_stacktrace,[{eldap,loop,2,[{file,"eldap.erl"},{line,517}]}]}]
2022-09-07 10:22:07 =SUPERVISOR REPORT====
Supervisor: {local,ldap_pool_sup}
Context: child_terminated
Reason: {error,noSuchObject}
Offender: [{pid,<0.3216.0>},{id,1},{mfargs,{worker_pool_worker,start_link,[ldap_pool]}},{restart_type,transient},{shutdown,4294967295},{child_type,worker}]
2022-09-07 10:22:07 =CRASH REPORT====
crasher:
initial call: cowboy_stream_h:request_process/3
pid: <0.3323.0>
registered_name: []
exception exit: {{{error,noSuchObject},{gen_server2,call,[<0.3216.0>,{submit,#Fun<rabbit_auth_backend_ldap.14.130291405>,<0.3323.0>,reuse},infinity]}},[]}
ancestors: [<0.3322.0>,<0.3101.0>,<0.3100.0>,rabbit_web_dispatch_sup,<0.3089.0>]
message_queue_len: 0
messages: []
links: [<0.3322.0>]
dictionary: []
trap_exit: false
status: running
heap_size: 6772
stack_size: 28
reductions: 5148
neighbours:
2022-09-07 10:22:07 =ERROR REPORT====
Ranch listener {acceptor,{0,0,0,0,0,0,0,0},15672}, connection process <0.3322.0>, stream 1 had its request process <0.3323.0> exit with reason {{error,noSuchObject},{gen_server2,call,[<0.3216.0>,{submit,#Fun<rabbit_auth_backend_ldap.14.130291405>,<0.3323.0>,reuse},infinity]}} and stacktrace []
Nginx ovšem HTTP/2 na backendy pro reverzní proxy nepodporuje, podle vývojářů to nedává smysl a podpora je jen směrem dopředu ke klientům.
Ahoj,
vzpamatuje se pole, když se ze serveru vyjmou disky v RAID 5 a vloží se do něj v jiném pořadí?
Vezmu server, vyndám z něj disky, přenesu ho a při vracení disků zpřeházím pořadí.
Bude to v rámci stejného řadiče.
Příklad: Disky ze šachet 2,3,7,8 dám do 1,2,3,4
Jednou jsem to udělal na PERCu, pole se naštvalo (označilo se jako degraded), ale po přepočítání se na mě zase hezky usmívalo....jen už to je nějaký ten pátek.
https://www.zabbix.com/documentation/current/en/manual/config/items/itemtypes/prometheus
HTTP/1.1 200 OK
Connection: close
# HELP go_gc_duration_seconds A summary of the pause duration of garbage collection cycles.
# TYPE go_gc_duration_seconds summary
go_gc_duration_seconds{quantile="0"} 0.000197284
go_gc_duration_seconds{quantile="0.25"} 0.001007571
go_gc_duration_seconds{quantile="0.5"} 0.00133696
go_gc_duration_seconds{quantile="0.75"} 0.001480352
# HELP postfix_qmgr_messages_removed_total Total number of messages removed from mail queues.
# TYPE postfix_qmgr_messages_removed_total counter
postfix_qmgr_messages_removed_total 0
# HELP promhttp_metric_handler_requests_total Total number of scrapes by HTTP status code.
# TYPE promhttp_metric_handler_requests_total counter
promhttp_metric_handler_requests_total{code="200"} 59
promhttp_metric_handler_requests_total{code="500"} 0
promhttp_metric_handler_requests_total{code="503"} 0
0
266951:20220630:135630.589 item "host.example.com:web.page.get[{$PROMETHEUS_EXPORTER_HOST},{$PROMETHEUS_EXPORTER_URL},{$PROMETHEUS_EXPORTER_PORT}]" became not supported: Preprocessing failed for: HTTP/1.1 200 OK..Connection: close..Transfer-Encoding: chunked..Content-Type: text/plain; version...
1. Result: # HELP go_gc_duration_seconds A summary of the pause duration of garbage collection cycles..# TYP...
2. Failed: cannot perform regular expression "^[\s\S]*?(?=\n{2,})" match for value of type "string": pattern does not match
-> pokud odstranim druhy krok, chybuje to na prvnim prazdnem radku po metrikachcannot perform regular expression "^(.*postfix_.*)$" match for value of type "string": pattern does not match
Podarilo se mi smazat oddil kde jsem mel zavedeny linuxproxy nebo gateway?
Existují jich tuny, spíše tedy popiš k čemu to chceš.
Api má třeba Apache knox, Caddy, Traefik, IBM WebSEAL, f5 (iControl), Citrix atd. atd. Zpravidla open source nástroje jsou chudé s textovou konfigurací, u placených bývají vymazelné UI, protože to prodává, těžko asi budeš ukazovat na presell swagger a terminal.