<commit_before>job "ceph" {

	task "monitor" {
		global = true
		count = 2
		image = "ceph/daemon"
		volumes = "/var/lib/ceph:/var/lib/ceph"
		args = ["mon"]
		env {
			MON_IP = "{{private_ipv4}}"
			MON_NAME = "{{hostname}}"
			KV_TYPE = "etcd"
			KV_IP = "{{private_ipv4}}"
			CEPH_PUBLIC_NETWORK = "$(echo {{private_ipv4}} | cut -d '.' -f 1,2,3 | awk '{print $1 \".0/24\"}')"
		}
		docker-args = ["--net=host"]
		constraint {
			attribute = "meta.ceph-mon"
			value = "true"
		}
	}

	task "osd" {
		global = true
		count = 2
		image = "ceph/daemon"
		volumes = [
			"/var/lib/ceph/osd:/var/lib/ceph/osd",
			"/var/log/ceph:/var/log/ceph"
		]
		args = ["osd"]
		env {
			HOSTNAME= "{{hostname}}"
			OSD_TYPE = "directory"
			OSD_JOURNAL_SIZE = "20"
			KV_TYPE = "etcd"
			KV_IP = "{{private_ipv4}}"
		}
		docker-args = ["--net=host", "--privileged=true", "--pid=host"]
		constraint {
			attribute = "meta.ceph-osd"
			value = "true"
		}
	}

	task "mds" {
		count = 2
		image = "ceph/daemon"
		volumes = [
			"/var/lib/ceph/:/var/lib/ceph/",
			"/var/log/ceph:/var/log/ceph"
		]
		args = ["mds"]
		env {
			MDS_NAME= "mds-${instance}"
			CEPHFS_CREATE = "1"
			KV_TYPE = "etcd"
			KV_IP = "{{private_ipv4}}"
		}
		docker-args = ["--net=host"]
	}
}<commit_msg>Force mds on worker instances<commit_after>job "ceph" {

	task "monitor" {
		global = true
		count = 2
		image = "ceph/daemon"
		volumes = "/var/lib/ceph:/var/lib/ceph"
		args = ["mon"]
		env {
			MON_IP = "{{private_ipv4}}"
			MON_NAME = "{{hostname}}"
			KV_TYPE = "etcd"
			KV_IP = "{{private_ipv4}}"
			CEPH_PUBLIC_NETWORK = "$(echo {{private_ipv4}} | cut -d '.' -f 1,2,3 | awk '{print $1 \".0/24\"}')"
		}
		docker-args = ["--net=host"]
		constraint {
			attribute = "meta.ceph-mon"
			value = "true"
		}
	}

	task "osd" {
		global = true
		count = 2
		image = "ceph/daemon"
		volumes = [
			"/var/lib/ceph/osd:/var/lib/ceph/osd",
			"/var/log/ceph:/var/log/ceph"
		]
		args = ["osd"]
		env {
			HOSTNAME= "{{hostname}}"
			OSD_TYPE = "directory"
			OSD_JOURNAL_SIZE = "20"
			KV_TYPE = "etcd"
			KV_IP = "{{private_ipv4}}"
		}
		docker-args = ["--net=host", "--privileged=true", "--pid=host"]
		constraint {
			attribute = "meta.ceph-osd"
			value = "true"
		}
	}

	task "mds" {
		count = 2
		image = "ceph/daemon"
		volumes = [
			"/var/lib/ceph/:/var/lib/ceph/",
			"/var/log/ceph:/var/log/ceph"
		]
		args = ["mds"]
		env {
			MDS_NAME= "mds-${instance}"
			CEPHFS_CREATE = "1"
			KV_TYPE = "etcd"
			KV_IP = "{{private_ipv4}}"
		}
		docker-args = ["--net=host"]
		constraint {
			attribute = "meta.worker"
			value = "true"
		}
	}
}
{'fraction_non_alphanumeric': 0.21176018447348194, 'fraction_numerical': 0.013835511145272867, 'mean_word_length': 2.6102635228848823, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '455770', 'n_tokens_mistral': 1373, 'n_tokens_neox': 1191, 'n_words': 201}