I hereby claim:
- I am chaudum on github.
- I am chaudum (https://keybase.io/chaudum) on keybase.
- I have a public key whose fingerprint is EBCE F684 BA35 529C B936 E65B 9EBD BC4E EBD1 576F
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
global: | |
scrape_timeout_offset: 250ms | |
min_interval: 0s | |
max_connections: 3 | |
max_idle_connections: 3 | |
target: | |
data_source_name: "postgres://crate@localhost:5432/sys?sslmode=disable" | |
collectors: [health_collector] |
import asyncio | |
async def do_something_long_running(sec=1) -> bool: | |
print(f"sleep for {sec}s") | |
await asyncio.sleep(sec) | |
return True | |
async def coro_a(t): |
import asyncio | |
async def do_something_long_running(sec=1) -> bool: | |
print(f"sleep for {sec}s") | |
await asyncio.sleep(sec) | |
return True | |
async def coro_a(): | |
return await do_something_long_running() |
#!/usr/bin/env python3 | |
import argparse | |
import json | |
import sys | |
def add_default_args(parser): | |
parser.add_argument( | |
"--region", |
1,34d0 | |
< crate_circuitbreakers{name="fielddata",property="limit",} | |
< crate_circuitbreakers{name="fielddata",property="overhead",} | |
< crate_circuitbreakers{name="fielddata",property="trippedCount",} | |
< crate_circuitbreakers{name="fielddata",property="used",} | |
< crate_circuitbreakers{name="in_flight_requests",property="limit",} | |
< crate_circuitbreakers{name="in_flight_requests",property="overhead",} | |
< crate_circuitbreakers{name="in_flight_requests",property="trippedCount",} | |
< crate_circuitbreakers{name="in_flight_requests",property="used",} | |
< crate_circuitbreakers{name="jobs_log",property="limit",} |
import graphene | |
class Result(graphene.ObjectType): | |
text = graphene.String(default_value="OK") | |
code = graphene.Int() | |
class Queries(graphene.ObjectType): | |
result = graphene.Field(Result) |
id: ... | |
name: Azure IoT | |
tiers: | |
- name: "s0" | |
available: true | |
specs: | |
default: | |
cpu: 1 | |
mem: 1024 | |
disk: 1024 |
$ python | |
Python 3.7.0 (default, Jun 27 2018, 14:40:03) | |
[GCC 8.1.0] on linux | |
Type "help", "copyright", "credits" or "license" for more information. | |
>>> print(open("testme.md").read()) | |
# Hello World | |
Example: | |
>>> 2 + 2 |
vm.max_map_count=262144
to /etc/sysctl.d/crate.conf
and load it with sudo sysctl -p
.You can use the released version from https://cdn.crate.io/downloads/releases/