Open BaiZe1998 opened 8 months ago
Just proposal
We may need some make ...
command to do following operations:
make start all
to start all services in ./applications
make start xxx
to start a clarify service named xxx
in ./applications/xxx
make stop all
to stop all servicesmake stop xxx
to stop a clarify serviceI think that the current method of launching all services by reading environment variables is not suitable, because modifying environment variables is not convenient. I would prefer to launch services by reading a local yml configuration file, or after the successful deployment of /env/dependences.yml, import the configuration of each service into etcd and get configuration from it.
@TremblingV5 cc
At present, the startup of services depends on environment variables and .yml files. I think it's better not to introduce too much complexity.
I think that the current method of launching all services by reading environment variables is not suitable, because modifying environment variables is not convenient. I would prefer to launch services by reading a local yml configuration file, or after the successful deployment of /env/dependences.yml, import the configuration of each service into etcd and get configuration from it.
Yes, I also feel not suitable in running DouTok.
Using env variables becuase I assumed that we may use k8s to manage services. If we use k8s, it's good for using env variables. But now we not using k8s so it's redundant.
I think we may use 2 - 3 launch layout:
DouTok can select a suitable method to load configurations. Now I think load files or load from etcd is better than env variables.
May I directly comment the code related to Otel? such as this one
May I directly comment the code related to Otel? such as this one
Yes, but these code only log lines for can't achieve otel , it not affect run services.
hi, can I try to do this?
hi, can I try to do this?
Sure, but I prefer you to look this repo: https://github.com/cloudzenith/DouTok
It's the next version of this repo
The local startup method for DouTok services is very poor, it needs to be optimized using make.