sto lavorando su sedano e utilizzo server rabbitmq e ho creato un progetto nel progetto django in un server (dove coda di messaggi, database esiste) e sta funzionando bene, ho creato più lavoratori anchecome configurare ed eseguire seder worker su sistema remoto
from kombu import Exchange, Queue
CELERY_CONCURRENCY = 8
CELERY_ACCEPT_CONTENT = ['pickle', 'json', 'msgpack', 'yaml']
CELERY_RESULT_BACKEND = 'amqp'
CELERYD_HIJACK_ROOT_LOGGER = True
CELERY_HIJACK_ROOT_LOGGER = True
BROKER_URL = 'amqp://guest:[email protected]:5672//'
CELERY_QUEUES = (
Queue('default', Exchange('default'), routing_key='default'),
Queue('q1', Exchange('A'), routing_key='routingKey1'),
Queue('q2', Exchange('B'), routing_key='routingKey2'),
)
CELERY_ROUTES = {
'my_taskA': {'queue': 'q1', 'routing_key': 'routingKey1'},
'my_taskB': {'queue': 'q2', 'routing_key': 'routingKey2'},
}
AMQP_SERVER = "127.0.0.1"
AMQP_PORT = 5672
AMQP_USER = "guest"
AMQP_PASSWORD = "guest"
AMQP_VHOST = "/"`
CELERY_INCLUDE = ('functions')
`
ma voglio correre i lavoratori da un altro server.so ho bisogno di alcune informazioni riguardanti come gestire un lavoratore in un altro sistema in cui ho fatto riferimento alcuni siti si sta dicendo che abbiamo bisogno di è anche necessario eseguire il progetto django sul sistema remoto?
grazie per la risposta è molto utile per me, potreste aiutarmi a configurare il worker sulla postazione remota ed è necessario avere una boccetta sul server remoto e principale – krishna