Skip to content

Commit

Permalink
Add new files
Browse files Browse the repository at this point in the history
  • Loading branch information
karencfv committed Aug 14, 2024
1 parent f6d2994 commit cb8e98d
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 0 deletions.
10 changes: 10 additions & 0 deletions smf/clickhouse-admin/config.toml
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"
46 changes: 46 additions & 0 deletions smf/clickhouse-admin/manifest.xml
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} &amp;'
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>

0 comments on commit cb8e98d

Please sign in to comment.