Skip to content

chore: support for m1 mac #1487

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed

chore: support for m1 mac #1487

wants to merge 1 commit into from

Conversation

waterfallmouse
Copy link

Legal Boilerplate

Look, I get it. The entity doing business as "Sentry" was incorporated in the State of Delaware in 2015 as Functional Software, Inc. and is gonna need some rights from me in order to utilize my contributions in this here PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms.

@waterfallmouse
Copy link
Author

#914

@waterfallmouse
Copy link
Author

waterfallmouse commented May 25, 2022

This pull request was tentatively created to run this repository on m1 mac.

With this branch, ./install.sh and docker-compose up -d will probably work.

If you have any questions, please feel free to contact me.

I hope Clickhouse supports m1 mac...

Copy link
Collaborator

@aminvakil aminvakil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AFAICS this is not adding support for mac, but removing support for x64.

@@ -1,5 +1,5 @@
<yandex>
<max_server_memory_usage_to_ram_ratio from_env="MAX_MEMORY_USAGE_RATIO" />
<max_server_memory_usage_to_ram_ratio>0.3</max_server_memory_usage_to_ram_ratio>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why should we use an exact value instead of using envs?

Copy link
Author

@waterfallmouse waterfallmouse May 25, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@aminvakil
I don't know the exact reason, but without this change, Clickhouse would be unhealthy.

reference

@@ -186,7 +186,7 @@ services:
test: ["CMD-SHELL", "nc -z localhost 9092"]
clickhouse:
<<: *restart_policy
image: "yandex/clickhouse-server:20.3.9.70"
image: "altinity/clickhouse-server:21.12.3.32.altinitydev.arm"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this work in x64 architectures?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@aminvakil
I'm sorry, but I don't know because I only checked this branch with m1 mac.

@aminvakil
Copy link
Collaborator

Thanks for this, but we clearly cannot change this repository and break every other user not using an arm CPU :)

Please make a PR working for both x64 and arm architectures and we can discuss on it.

@aminvakil aminvakil closed this May 25, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Jun 10, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants