forked from oxidecomputer/omicron
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
56 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[dropshot] | ||
# 1 MiB; we don't expect any requests of more than nominal size. | ||
request_body_max_bytes = 1048576 | ||
|
||
[log] | ||
# Show log messages of this level and more severe | ||
level = "info" | ||
mode = "file" | ||
path = "/dev/stdout" | ||
if_exists = "append" |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
<?xml version="1.0"?> | ||
<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1"> | ||
|
||
<service_bundle type='manifest' name='clickhouse-admin'> | ||
|
||
<service name='oxide/clickhouse-admin' type='service' version='1'> | ||
<create_default_instance enabled='true' /> | ||
|
||
<dependency name='multi_user' grouping='require_all' restart_on='none' | ||
type='service'> | ||
<service_fmri value='svc:/milestone/multi-user:default' /> | ||
</dependency> | ||
|
||
<dependency name='zone_network_setup' grouping='require_all' restart_on='none' | ||
type='service'> | ||
<service_fmri value='svc:/oxide/zone-network-setup:default' /> | ||
</dependency> | ||
|
||
<exec_method type='method' name='start' | ||
exec='ctrun -l child -o noorphan,regent /opt/oxide/clickhouse-admin/bin/clickhouse-admin run -c /var/svc/manifest/site/clickhouse-admin/config.toml -H %{config/http_address} &' | ||
timeout_seconds='0' /> | ||
<exec_method type='method' name='stop' exec=':kill' timeout_seconds='0' /> | ||
|
||
<property_group name='config' type='application'> | ||
<!-- TODO: Actually use clickhouse address for something --> | ||
<propval name='clickhouse_address' type='astring' value='unknown' /> | ||
<propval name='http_address' type='astring' value='unknown' /> | ||
</property_group> | ||
|
||
<property_group name='startd' type='framework'> | ||
<propval name='duration' type='astring' value='contract' /> | ||
</property_group> | ||
|
||
<stability value='Unstable' /> | ||
|
||
<template> | ||
<common_name> | ||
<loctext xml:lang='C'>Omicron ClickHouse Admin Server</loctext> | ||
</common_name> | ||
<description> | ||
<loctext xml:lang='C'>Administering Oxide's Time-Series Database and Coordination Nodes</loctext> | ||
</description> | ||
</template> | ||
</service> | ||
|
||
</service_bundle> |