- SSD disk for CrateDB storage.
- Add
vm.max_map_count=262144
to/etc/sysctl.d/crate.conf
and load it withsudo sysctl -p
.
You can use the released version from https://cdn.crate.io/downloads/releases/
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/
ack | |
adduser | |
apt | |
apt-transport-https | |
apt-utils | |
arc-theme | |
audacious-plugins | |
audacity | |
base-files | |
base-passwd |
## Test 1: file.managed | |
## SUCCESS | |
2018-06-19 08:16:52,107 [salt.minion :1428][INFO ][30764] User sudo_admin Executing command state.apply with jid 20180619081652084078 | |
2018-06-19 08:16:52,108 [salt.minion :1435][DEBUG ][30764] Command details {u'tgt_type': u'glob', u'jid': u'20180619081652084078', u'tgt': u'st*', u'ret': u'', u'user': u'sudo_admin', u'arg': [u'crate_demo_cluster.test_success', {u'test': True, u'__kwarg__': True}], u'fun': u'state.apply'} | |
2018-06-19 08:16:52,117 [salt.minion :1563][INFO ][428] Starting a new job with PID 428 | |
2018-06-19 08:16:52,122 [salt.utils.lazy :100 ][DEBUG ][428] LazyLoaded state.apply | |
2018-06-19 08:16:52,123 [salt.utils.lazy :100 ][DEBUG ][428] LazyLoaded direct_call.execute | |
2018-06-19 08:16:52,126 [salt.utils.lazy :100 ][DEBUG ][428] LazyLoaded saltutil.is_running | |
2018-06-19 08:16:52,127 [salt.utils.lazy :100 ][DEBUG ][428] LazyLoaded grains.get |